Monte Carlo Method and pi

Paul Rubin http
Sun Jul 11 19:04:59 EDT 2004


Fernando Perez <fperez528 at yahoo.com> 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 random.py,
> 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