Welcome, guest | Sign In | My Account | Store | Cart

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

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install randorg
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1.0 Available View build log
Linux (64-bit)
0.1.0 Available View build log
 
License
LICENSE.txt
Dependencies
Imports
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

  • Numpy

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.

Subscribe to package updates

Last updated Jul 29th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.