uniform
- sherpa.utils.random.uniform(rng, low, high, size=None)[source] [edit on github]
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