Monte Carlo Method and pi
Paul Rubin
http
Sun Jul 11 19:32:33 EDT 2004
Fernando Perez <fperez528 at yahoo.com> writes:
> > random.random in python 2.2 and later calls the Mersenne Twister generator,
> > a very fast generator implemented in C.
>
> Sure?
> Python 2.2.3 (#1, Oct 15 2003, 23:33:35)
> Source:
> def random(self):
> """Get the next random number in the range [0.0, 1.0)."""
>
> # Wichman-Hill random number generator.
Hmm, I guess MT only became the default in 2.3. Thanks.
More information about the Python-list
mailing list