[SciPy-Dev] seeded randn gets different values on osx

Matthew Brett matthew.brett at gmail.com
Sun Jun 13 11:46:41 EDT 2010


Hi,

>> After a little discusion with Josef here are some results. It appears
>> to me that osx gets different values from a seeded randn
>
>> On my machine OSX py 2.6.5, numpy 1.4.0 scipy 8.0b
>>>>>> np.random.seed(0)
>>>>>> np.random.randn(3)
>>> array([ 0.06897149,  1.32078057,  1.5997924 ])

Nor in a numpy-1.4.0 virtualenv:

In [1]: import numpy as np

In [2]: np.__version__
Out[2]: '1.4.0'

In [3]: np.random.seed(0)

In [4]: np.random.randn(3)
Out[4]: array([ 1.76405235,  0.40015721,  0.97873798])

Best,

Matthew



More information about the SciPy-Dev mailing list