Home  >  Article  >  Backend Development  >  What is the usage of randint function in python?

What is the usage of randint function in python?

coldplay.xixi
coldplay.xixiOriginal
2020-06-15 09:20:2828046browse

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

What is the usage of randint function in python?

high≠None

What is the usage of randint function in python?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn