Skip to main content

Python package to use the method of linear congruences to generate a random number

Project description

The package provides a function called linear_congruence_random_generator(), wich returns a randon number based on the method of linear congruences using the following parameters: a = 22695477 b = 1 m = 2**32 x0=1649836483

Also it provides and object called c_linear_congruences. It should be intialized providing the parameters x0,a,b and m. The object provides a method called linear_congruence_random_generator() wich will return a random number based on the method of linear congruences using the parameters of the object initialization.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ie_mbdbl2018_ahirane, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size ie_mbdbl2018_ahirane-0.2.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page