What is the usage of randint function in python?

coldplay.xixi
Release: 2020-06-15 09:20:28
Original
28054 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template