difference between random module in python 2.6 and 3.2?
mwilson at the-wire.com
Mon Feb 6 16:20:31 CET 2012
Steven D'Aprano wrote:
> A more explicit note will help, but the basic problem applies: how do you
> write deterministic tests given that the random.methods (apart from
> random.random itself) can be changed without warning?
Biting the bullet would mean supplying your own PRNG, under your control.
Jon Bentley somewhere, sometime, published a portable PRNG for that exact
reason. (I wish I could find that article.) Specifically he wanted
portability across various manufacturer's O/Ss.
More information about the Python-list