cupy.random.randint¶
-
cupy.random.
randint
(low, high=None, size=None)[source]¶ Returns a scalar or an array of integer values over
[low, high)
.Each element of returned values are independently sampled from uniform distribution over left-close and right-open interval
[low, high)
.Parameters: Returns: If size is
None
, it is single integer sampled. If size is integer, it is the 1D-array of lengthsize
element. Otherwise, it is the array whose shape specified bysize
.Return type: int or cupy.ndarray of ints