[Tutor] random numbers

Jason Stokes jstok@bluedog.apana.org.au
Mon, 11 Sep 2000 17:20:15 +1100


michaelbaker@operamail.com wrote:
> 
> I'm using Python in the freeware 3D package called Blender
> (http://www.blender.nl). I have a script that evaluates the movement of one
> object and attempts to generate matching animation curves. I'd like to add
> some non-pseudo randomness.

If you're on Linux, you can read in true random numbers from the special
device /dev/rand and psuedorandom numbers from the special device
/dev/urand.  There's also the "random" module in the standard python
distribution.  Getting data from a website -- www.random.net, for
example -- is also perfectly doable with some HTTP scripting.

Cheers,
Jason Stokes: jstok@bluedog.apana.org.au