Articles → Numpy → Randint Function In Numpy

Randint Function In Numpy






Purpose





Syntax






  1. Low – Minimum value of the range.
  2. High – Maximum value of the range.
  3. Size - This is an optional parameter. This argument specifies the count of element returned. Default value is 1.

Example


import numpy as np
print(np.random.randint(1, 10,2 ))




Picture showing the output of the Randint function NumPy

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, March 26, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250