standard_normal
- sherpa.utils.random.standard_normal(rng: Generator | RandomState | None, size: None = None) float[source] [edit on github]
- sherpa.utils.random.standard_normal(rng: Generator | RandomState | None, size: int | Sequence[int] | ndarray) ndarray
Create a random value from a normal distribution (mean=0, stdev=1).
- Parameters:
- rng
numpy.random.Generator,numpy.random.RandomState,orNone Determines how the random numbers are created. If set to None then the
numpy.random.standard_normalroutine is used.- size
optional The shape and number of elements to create.
- rng
- Returns:
- value
numberorndarray
- value