set_rng
- sherpa.astro.ui.set_rng(rng: RandomType | None) None
Set the RNG generator.
Added in version 4.16.0: This replaces the seed argument for certain routines and the need to explicitly call
numpy.random.seedin others.- Parameters:
- rng
numpy.random.Generator,numpy.random.RandomState,orNone Determines how random numbers are created. If set to None then the routines in
numpy.randomare used, and so can be controlled by callingnumpy.random.seed.
- rng
See also