Python / Numpy> Link> Difference between numpy.random and random.random> thread-safe or not

About the difference between numpy.random and random.random http://stackoverflow.com/questions/7029993/differences-between-numpy-random-and-random-random-in-python

Whether it is thread-safe

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

Other differences

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

crypt related

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

Python / Numpy> Link> Difference between numpy.random and random.random> thread-safe or not
Difference between Ruby and Python split
Difference between java and python (memo)
Difference between list () and [] in Python
Difference between == and is in python
Difference between Numpy randint and Random randint
Difference between python2 series and python3 series dict.keys ()
[Python] Difference between function and method
Python --Difference between exec and eval
[Python] Difference between randrange () and randint ()
[Python] Difference between sorted and sorted (Colaboratory)
difference between statements (statements) and expressions (expressions) in Python
Difference between PHP and Python finally and exit
Difference between @classmethod and @staticmethod in Python
[Python] Difference between class method and static method
[Python Iroha] Difference between List and Tuple
[python] Difference between rand and randn output
[python] Difference between variables and self. Variables in class
About the difference between "==" and "is" in python
Python and numpy tips
[Python] Boolean operator (or / and) does not return Boolean value
[Tips] First-order difference calculation and inverse conversion [python / numpy]
Difference between Ruby and Python in terms of variables
Difference between Numpy (n,) and (n, 1) notation [Difference between horizontal vector and vertical vector]
It's not easy to write Python, it's easy to write numpy and scipy
Difference between return, return None, and no return description in Python
I want to absorb the difference between the for statement on the Python + numpy matrix and the Julia for statement
What is the difference between a symbolic link and a hard link?
Python module num2words Difference in behavior between English and Russian
Python> Difference between inpbt and print (inpbt) output> [1. 2. 3.] / array ([1., 2., 3.], dtype = float32)
List concatenation method in python, difference between list.extend () and “+” operator
Difference between process and job
Difference between "categorical_crossentropy" and "sparse_categorical_crossentropy"
Difference between regression and classification
Python bitwise operator and OR
Difference between np.array and np.arange
Python or and and operator trap
Difference between ps a and ps -a
Difference between return and print-Python
Difference in how to write if statement between ruby ​​and python
Transcendental simple and clear! !! Difference between single quotes and double quotes in Python
File open function in Python3 (difference between open and codecs.open and speed comparison)
[Introduction to Python] How to use the Boolean operator (and ・ or ・ not)
Difference between SQLAlchemy filter () and filter_by ()
Memorandum (difference between csv.reader and csv.dictreader)
Cooperation between python module and API
Difference between sort and sorted (memorial)
[Python] return A [or / and] B
Difference between SQLAlchemy flush () and commit ()
[Introduction to Python] What is the difference between a list and a tuple?