[Numpy-discussion] in place random generation

Mark P. Miller mpmusu@cc.usu....
Fri Mar 9 12:19:37 CST 2007

Robert Kern wrote:
 > scipy.random is not a package. scipy/__init__.py does a "from numpy 
import *"
 > and thus pulls in numpy.random.

Got it...and one more question:

What about using something like
from numpy.random import mtrand

And then using mtrand.seed and mtrand.normal in code?

Would this by any chance get around some of the code that seems to be 
slowing down the random number generators when one can't efficiently use 
arrays of random numbers?

It seems useful, but I've been hesitant to re-install numpy 1.0.1 again 
to try it.


More information about the Numpy-discussion mailing list