Skip to main content

random.org number generator interface module

Project description

randomdotorg.py is a python module to implement python’s random number interface by fetching data from random.org, which is is a true random number service that generates randomness via atmospheric noise.

Example of use:

>>> r = randomdotorg.RandomDotOrg('ExampleCode') # Pass the name of your program
>>> r.get_quota() # method to get allowed bit quota for this ip
999171
>>> print r.randrange(2, 33, 3)
14

Methods supported by the standard library random module are supported, except for save/load state and seeding which won’t make sense for a true random number generator.

Supported by

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