randint(low, high=None, size=None, dtype='l')¶
Returns a scalar or an array of integer values over
Each element of returned values are independently sampled from uniform distribution over left-close and right-open interval
low (int) – If
None, it is the lower bound of the interval. Otherwise, it is the upper bound of the interval and lower bound of the interval is set to
high (int) – Upper bound of the interval.
dtype – Data type specifier.
If size is
None, it is single integer sampled. If size is integer, it is the 1D-array of length
sizeelement. Otherwise, it is the array whose shape specified by
- Return type
int or cupy.ndarray of ints