Synopsis
Set the RNG generator.
Syntax
set_rng(rng) rng - numpy.random.Generator, numpy.random.RandomState, or None
Description
PARAMETERS
The parameter for this function is:
Parameter | Definition |
---|---|
rng | Determines how random numbers are created. If set to None then the routines in `numpy.random` are used, and so can be controlled by calling `numpy.random.seed` . |
Changes in CIAO
Added in CIAO 4.16
This replaces the seed argument for certain routines and the need to explictly call `numpy.random.seed` in others.
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- sherpaish
- get_rng