numpy.random.randint()
numpy.random.randint
-
numpy.random.randint(low, high=None, size=None)
-
Return random integers from
low
(inclusive) tohigh
(exclusive).Return random integers from the “discrete uniform” distribution in the “half-open” interval [
low
,high
). Ifhigh
is None (the default), then results are from [0,low
).Parameters: low : int
Lowest (signed) integer to be drawn from the distribution (unless
high=None
, in which case this parameter is the highest such integer).high : int, optional
If provided, one above t