Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install randorg
How to install RandOrg
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install randorg
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.1.0 on Jul 29th, 2013
A Python Interface to the Random.org web service.
Provides a python wrapper to the following Random.org API calls:
- INTEGERS
- SEQUENCE
- STRING
- QUOTA
See below for usage examples.
DEPENDENCIES
This is known to work using IPython (v0.13) and Python (2.7.3).
INSTALLATION
Install with pip by running:
pip install randorg
See below for usage examples.
USAGE EXAMPLES
The package can be used as follows:
System Message: ERROR/3 (<string>, line 37)
Unknown directive type "code".
.. code:: python
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
ro.quota()
That pretty much sums up the functions included in the random.org api. More information on the random.org api can be found here.