random

sherpa.utils.random.random(rng)[source] [edit on github]

Create a random value [0, 1.0)

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

Returns:

value

Return type:

number