i like this post (click again to cancel)
0
i dont like this post (click again to cancel) remove favorite mark from this question (click again to restore mark)

Is the random number generator in numpy.random a pseudorandom number generator or a real random number generator?

flag offensive community wiki
add comment
1 Answers:
i like this answer (click again to cancel)
2
i dont like this answer (click again to cancel)

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).

For the interested, the pseudorandom number generator in NumPy implements the Mersenne Twister, which is generally considered a good generator for many applications, and is also used by the Python standard library's random module, as well as R, Maple, Ruby and recent versions of MATLAB.

add comment
Your answer:
You are now not logged in but you can answer first and then login
toggle preview

Made with Django.