normal

sherpa.utils.random.normal(rng, loc=0, scale=1, size=None)[source] [edit on github]

Create a random value from a normal distribution.

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.normal routine is used.

  • loc (number, optional) – The location of the normal.

  • scale (number, optional) – The scale of the normal.

  • size (optional) – The shape and number of elements to create.

Returns:

value

Return type:

number or ndarray