Home > Article > Backend Development > What is the usage of randint function in python?
What is the usage of randint function in python?
The usage of randint function in python is:
The usage given in the official documentation is: numpy.random.randint(low,high=None, size=None,dtype)
Generate discrete uniformly distributed integer values on the half-open and half-closed interval [low,high); if high=None, the value interval becomes [0,low)
Usage and implementation
High=None situation
high≠None
Recommended tutorial: "python video tutorial"
The above is the detailed content of What is the usage of randint function in python?. For more information, please follow other related articles on the PHP Chinese website!