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 details)

Uploaded Source

File details

Details for the file ie_mbdbl2018_ahirane-0.2.tar.gz.

File metadata

  • Download URL: ie_mbdbl2018_ahirane-0.2.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for ie_mbdbl2018_ahirane-0.2.tar.gz
Algorithm Hash digest
SHA256 a45dfe19f775287f3075593c34cafe7f5c7897e3b6757ef5ec9c71378a028307
MD5 abeffdc83c8f6cb8735c576ea2945fd0
BLAKE2b-256 6b6bc31f774efa098217cecb8c2f8cae8883be12d2d94a244d4faa7c99e0b2a5

See more details on using hashes here.

Supported by

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