Python Mersenne Twister implementation

Posted by B Rivera on Stack Overflow See other posts from Stack Overflow or by B Rivera
Published on 2010-06-06T14:25:48Z Indexed on 2010/06/06 14:32 UTC
Read the original article Hit count: 343

I have Python 3.1.2 and I'm using Windows XP.

Where can I see Python's implementation of the Mersenne Twister? In the Python docs it is stated that the Mersenne Twister was written in C and the Python History and License ( http://docs.python.org/py3k/license.html?highlight=mersenne%20twister ) states that "The _random module includes code based on a download from http://www.math.keio.ac.jp/matumoto/MT2002/emt19937ar.html."

random.py imports _random which apparently has the Mersenne Twister implementation in it. I can't seem to locate _random.

Any thoughts?

© Stack Overflow or respective owner

Related posts about module

Related posts about source-code