Über den Unterschied zwischen numpy.random
und random.random
http://stackoverflow.com/questions/7029993/differences-between-numpy-random-and-random-random-in-python
Unter den Antworten interessierte mich Folgendes.
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
Im obigen Link, wenn es sich um Krypta handelt. .. .. Sie können einige Notationen finden. Es wird gesagt, dass es ein Problem im Zusammenhang mit Krypta in Mersenne Twister usw. sein wird, das die deterministische Methode verwendet.
Sie werden keine Krypta verwenden.
Recommended Posts