À propos de la différence entre numpy.random
et random.random
http://stackoverflow.com/questions/7029993/differences-between-numpy-random-and-random-random-in-python
Parmi les réponses, je m'intéressais aux suivantes.
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
Dans le lien ci-dessus, s'il est lié à crypt. .. .. Vous pouvez trouver quelques notations. On dit que ce sera un problème lié à la crypte dans le twister de Mersenne etc. qui utilise la méthode déterministe.
Vous n'utiliserez pas crypt.
Recommended Posts