random changes

David Goodger goodger at python.org
Thu Aug 7 17:11:33 EDT 2003


dan wrote:
> next time the core RNG is changed, I think it would be useful to have
> an -oldrandom switch.  It is common practice in simulation projects
> to depend on the fact that your random numbers will come out the same
> if you use the same seed.  In bumping to 2.3 with the new Mersenne
> algorithm, I have no easy way of duplicating my old results.

Then don't switch to 2.3, at least for that program.
On POSIX systems, it's easy to specify which version you want:

    #! /usr/bin/python2.2
    # or whatever







More information about the Python-list mailing list