random
- sherpa.utils.random.random(rng: Generator | RandomState | None) float[source] [edit on github]
Create a random value [0, 1.0)
- Parameters:
- rng
numpy.random.Generator,numpy.random.RandomState,orNone Determines how the random numbers are created. If set to None then the
numpy.random.random_sampleroutine is used.
- rng
- Returns:
- value
number
- value