integers

sherpa.utils.random.integers(rng: Generator | RandomState | None, high: int) int[source] [edit on github]

Create a random integer from [0, high).

Parameters:
rngnumpy.random.Generator, numpy.random.RandomState, or None

Determines how the random numbers are created. If set to None then the numpy.random.randint routine is used.

high

The upper limit (not inclusive).

Returns:
valuenumber