truly_random --- A random generator for Python

From the README.txt,

    >>> import truly_random
    >>> truly_random.random()
    0.27969009844631798
    >>> truly_random.choice('aeiou')
    'e'
    >>> truly_random.choice('aeiou')
    'i'
    >>> truly_random.set_default_as_fourmi()
    >>> truly_random.choice('aeiou')
    'u'
This module has the same interface as the random module, but uses either /dev/random or Fourmilab's Hotbits service as a source of random bits.

I've tried to comment the code extensively, so please feel free to play around with it. This code is released under the Python Software Foundation License.

Releases

Back to python.