random
Fredrik Aronsson
d98aron at dtek.chalmers.se
Wed May 30 11:49:42 EDT 2001
In article <mailman.991210547.13125.python-list at python.org>,
"Tim Peters" <tim.one at home.com> writes:
[snip]
> Seriously, it's impossible to answer this without getting an objective
> definition of "good" from your teacher. Python's random.random() is the std
> Wichmann-Hill generator, and passes most tests for randomness. It's
> certainly better than the rand() function in the typical C library; it's
> certainly worse than, e.g., the Mersenne Twister.
[snip]
A hint might be crng:
"Random-number generators (RNGs) implemented as
Python extension types coded in C."
One of the generators is a 623 dimensional Mersenne Twister.
Faster and "more random" than random.random(). The name is MT19937
crng can be found at http://www.sbc.su.se/~per/crng/
/Fredrik
More information about the Python-list
mailing list