get_rng
- sherpa.ui.get_rng() RandomType | None
Return the RNG generator in use.
The return can be None, which means that the routines in
numpy.randomare used, and thus are affected by calls tonumpy.random.seed, otherwise the supplied generator is used to create random numbers. See https://numpy.org/doc/stable/reference/random/legacy.html for more information.Added in version 4.16.0.
See also