uniform

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

Create a random value within a uniform range.

Parameters:
Returns:

value

Return type:

number or ndarray