Articles → Numpy → Randint Function In Numpy
Randint Function In Numpy
Purpose
Syntax
- Low – Minimum value of the range.
- High – Maximum value of the range.
- Size - This is an optional parameter. This argument specifies the count of elements returned. The default value is 1.
Example
import numpy as np
print(np.random.randint(1, 10,2 ))
Output
Click to Enlarge