![](https://secure.gravatar.com/avatar/2487e33ee1d3dd72f1464642d8b454c5.jpg?s=120&d=mm&r=g)
Hi all, I tried the example code here: http://numpy.scipy.org/numpydoc/numpy-20.html#71863 But failed: -------------------------------------- rng.py, line 5, in <module> import RNG ImportError: No module named RNG -------------------------------------- Any suggestion? Thanks at first. Also, can any body tell me whether the random number algorithm in RNG package is a pseudorandom one or a real-random one? And is there an available implementation for Monte Carlo method in NumPy? Thanks a lot for any reply. Regards, Kejia
![](https://secure.gravatar.com/avatar/b684c02bab6c8d54c0c25c4b69ee1135.jpg?s=120&d=mm&r=g)
On 31-Oct-08, at 1:21 PM, Wu, Kejia wrote:
Also, can any body tell me whether the random number algorithm in RNG package is a pseudorandom one or a real-random one?
You can't generate real-random numbers in software alone. Real random number generation relies on sampling some random physical process. Google "real random number" and you'll find a number of online sources of genuine random numbers, including random.org (which uses atmospheric noise) and hotbits (which uses radioactive decay).
And is there an available implementation for Monte Carlo method in NumPy?
Try http://code.google.com/p/pymc/ David
![](https://secure.gravatar.com/avatar/2487e33ee1d3dd72f1464642d8b454c5.jpg?s=120&d=mm&r=g)
Hi David, Thank you very much for your reply. On Fri, 2008-10-31 at 14:31 -0400, David Warde-Farley wrote:
On 31-Oct-08, at 1:21 PM, Wu, Kejia wrote:
Also, can any body tell me whether the random number algorithm in RNG package is a pseudorandom one or a real-random one?
You can't generate real-random numbers in software alone. Real random number generation relies on sampling some random physical process. Google "real random number" and you'll find a number of online sources of genuine random numbers, including random.org (which uses atmospheric noise) and hotbits (which uses radioactive decay).
And is there an available implementation for Monte Carlo method in NumPy?
Try http://code.google.com/p/pymc/
David
participants (2)
-
David Warde-Farley
-
Wu, Kejia