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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.