Keith Goodman wrote:

> Using the same seed sometimes gives different results:
> 
> from numpy import random
> def rtest():
>   rs = random.RandomState([11,21,699,1])
>   a = rs.rand(100,1)
>   b = rs.randn(100,1)
>   return sum(a + b)
> 
>>> mytest.rtest()
> array([ 41.11776129])
> 
>>> mytest.rtest()
> array([ 40.16631018])

Fixed in SVN. Thank you.

http://projects.scipy.org/scipy/numpy/ticket/155

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to