standard_normal
- sherpa.utils.random.standard_normal(rng, size=None)[source] [edit on github]
Create a random value from a normal distribution (mean=0, stdev=1).
- 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.standard_normal
routine is used.size (optional) – The shape and number of elements to create.
- Returns:
value
- Return type:
number or ndarray