random.seed question (not reproducing same sequence)

Ned Batchelder ned at nedbatchelder.com
Tue Apr 15 20:48:06 EDT 2014


On 4/15/14 8:07 PM, Dan Stromberg wrote:
> You could easily provide your own random number generator, if you
> don't need cryptographic-strength random numbers.
>
> EG:
> http://stromberg.dnsalias.org/svn/lcgrng/trunk/lcgrng.py
>
> That way you can be certain nothing else is using it.

There's no need to pull in a new implementation.  The stdlib module is 
perfectly willing to give you your own private random number sequence to 
use.

-- 
Ned Batchelder, http://nedbatchelder.com




More information about the Python-list mailing list