uniform

sherpa.utils.random.uniform(rng: Generator | RandomState | None, low: float, high: float, size: Literal[None] = None) float[source] [edit on github]
sherpa.utils.random.uniform(rng: Generator | RandomState | None, low: float, high: float, size: int | Sequence[int] | ndarray) ndarray
sherpa.utils.random.uniform(rng: Generator | RandomState | None, low: Sequence[float] | ndarray, high: Sequence[float] | ndarray, size: Literal[None] = None) ndarray

Create a random value within a uniform range.

Parameters:
Returns:

value

Return type:

number or ndarray