[Tutor] Re: A question on randomness

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sun, 14 Jul 2002 20:51:58 -0700 (PDT)


On Sat, 13 Jul 2002, Derrick 'dman' Hudson wrote:

> On Thu, Jul 11, 2002 at 11:22:48PM +0200, Andrea Valle wrote:
>
> | It' a couple of year I work with random generators.
>
> | I know pseudo-random generation is a complex matter. Is there a way to
> | "improve" it?
>
> If you don't like python's builtin pseudo-random generator, you can
> use the kernel's :
>
> rand = open( "/dev/random" , "r" )
> data = rand.read( 10 ) # just 10 bytes of random data
> rand.close()


Ah, good!  Ok, I've incorporated this into the Fourmilab random module,
and have renamed the module as 'truly_random':

    http://hkn.eecs.berkeley.edu/~dyoo/python/truly_random/

I hope this helps!