[SciPy-user] How to generate equivalent "random" numbers in matlab and scipy?

Sturla Molden sturla@molden...
Mon Feb 23 06:49:25 CST 2009


On 2/23/2009 5:07 AM, Robert Kern wrote:

> A quick Google tells me that starting with Matlab 7.4, they do use the
> Mersenne Twister by default, so it might be possible if you can
> re-implement their seeding algorithm.

And for previous versions of Matlab, the PRNGs are:

http://www.mathworks.com/moler/ncm/randtx.m
http://www.mathworks.com/moler/ncm/randntx.m


S.M.


More information about the SciPy-user mailing list