The random module of NumPy provides convenient methods for generating random data having the desired shape and distribution.
random
Here's the official documentation.