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:
rng (numpy.random.Generator, numpy.random.RandomState, or None) – Determines how the random numbers are created. If set to None then the
numpy.random.uniform
routine is used.low – The range [low, high].
high – The range [low, high].
size – The shape and size of the return.
- Returns:
value
- Return type:
number or ndarray