Skip to main content

A Python wrapper to the Random.Org service.

Project description

A Python Interface to the web service. Provides a python wrapper to the following API calls:


See below for usage examples.


  • Numpy

This is known to work using IPython (v0.13) and Python (2.7.3).


Install with pip by running:

pip install randorg

See below for usage examples.


The package can be used as follows:

import randomorg as ro

# Generate 5 integers between 1 and 100
ro.integers(5, minimum=1, maximum=100, base=10)

# Generate a random sequence of integers between 1 and 10
ro.sequence(minimum=1, maximum=10)

# Generate 5 unique strings (e.g. passwords) of 10 characters each
ro.string(num=5, length=10, digits=True, upper=True,
                        lower=True, unique=True)

# Check your quota

That pretty much sums up the functions included in the api. More information on the api can be found here.

Project details

Release history Release notifications

Download files

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

Files for RandOrg, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size RandOrg-0.1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page