About the difference between numpy.random
and random.random
http://stackoverflow.com/questions/7029993/differences-between-numpy-random-and-random-random-in-python
Among the answers, I was interested in the following.
answered Aug 11 '11 at 17:56 Hannele ... For numpy.random.seed(), the main difficulty is that it is not thread-safe - ... As far as I can tell, random.random.seed() is thread-safe (or at least, I haven't found any evidence to the contrary).
The numpy.random library contains a few extra probability distributions commonly used in scientific research, as well as a couple of convenience functions for generating arrays of random data. The random.random library is a little more lightweight, and should be fine if you're not doing scientific research or other kinds of work in statistics.
Mersenne twister
Otherwise, they both use the Mersenne twister sequence to generate their random numbers
In the above link, if it is related to crypt. .. .. You can find some notations. Mersenne twister, who uses a deterministic method, has a problem with crypt.
You won't use crypt.
Recommended Posts