Monte Carlo Method and pi

Paul Rubin http
Mon Jul 12 01:04:59 CEST 2004

Fernando Perez <fperez528 at> writes:
> Note that the above isn't 100% fair, since I'm calling the stdlib
> rand, a C-coded simple generator, while v1 calls python's,
> a Python-coded Wichmann-Hill one.

random.random in python 2.2 and later calls the Mersenne Twister generator,
a very fast generator implemented in C.

More information about the Python-list mailing list