[Numpy-discussion] PRNGs and multi-threading

Sturla Molden sturla@molden...
Fri Aug 21 22:37:34 CDT 2009


Robert Kern skrev:
> As long as you use different seeds, I believe this is fine. The state
> size of MT is so enormous that almost any reasonable use will not find
> overlaps.
>   

It seems there is a special version of the Mersenne Twister for this. 
The code is LGPL (annoying for SciPy but ok for me).

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/DC/dc.html 
<http://www.math.sci.hiroshima-u.ac.jp/%7Em-mat/MT/DC/dc.html>


Sturla Molden


More information about the NumPy-Discussion mailing list