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.

Source Distribution

ie_mbdbl2018_ahirane-0.2.tar.gz (1.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page