dpnp.random.randint

dpnp.random.randint(low, high=None, size=None, dtype=<class 'int'>)[source]

Return random integers from low (inclusive) to high (exclusive).

For full documentation refer to numpy.random.randint.

Limitations

Parameters low and high are supported as scalar. Parameter dtype is supported only for int or dpnp.float32. Otherwise, numpy.random.randint(low, high, size, dtype) samples are drawn.

Examples

Draw samples from the distribution: >>> low, high = 3, 11 # low and high >>> s = dpnp.random.randint(low, high, 1000, dtype=dpnp.int32)

See also

dpnp.random.random_integers

similar to randint, only for the closed interval [low, high], and 1 is the lowest value if high is omitted.