How to create a numpy array with random numbers in Python

Channel Avatar
Comment
X
Share
How to create a numpy array with random numbers in Python
How to create a numpy array with random numbers in Python
In this tutorial, I’m gonna be showing you how to create a numpy array with random numbers in Python.

With rand() function from the random module we’re going to create 5 random numbers between 0 and 1 with uniform distribution. If we want to get integer numbers we’re going to use randint() function.

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *