Is it possible to reproduce randn() of MATLAB with NumPy?

I wonder if it is possible to exactly reproduce the whole sequence of randn() of MATLAB with NumPy. I coded my own routine with Python/Numpy, and it is giving me a little bit different results from the MATLAB code somebody else did, and I am having hard time finding out where it is coming from because of different random draws.

I have found the numpy random.seed value which produces the same number for the first draw, but from the second draw and on, it is completely different. I'm drawing multivariate normal for like 20,000 times so I don't want to just save the matlab draws and read it in Python. If there is any other way I guess I have to do that. Please let me know.

-Joon

6
задан joon 15 September 2010 в 21:50
поделиться