NumPy can generate random numbers with the np.random module.
・ Np.random.rand () that generates uniform random numbers from 0 to less than 1. Generates random numbers for the number of integers specified in ().
-Np.random.randint (x, y, z) that generates z integers greater than or equal to x and less than y Note that it produces integers greater than or equal to x and less than y. In addition, you can generate a 2x3 matrix by specifying an argument for z, such as (2,3).
・ Np.random.normal () that generates random numbers that follow a Gaussian distribution
Recommended Posts