Back to Numerical Arrays (NumPy)
np.random_integers
Return random integers from low (inclusive) to high (exclusive).
Syntax
np.random_integers(low, high?, size?)
Description
Return random integers from low (inclusive) to high (exclusive).
Parameters
| Name | Description |
|---|---|
| low | - Lowest integer (unless high is None, then range is [0, low)) |
| high(optional) | - Upper bound (exclusive). If None, range is [0, low) |
| size(optional) | - Output shape |
Returns
NDArray | number