filmov
tv
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.
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.