bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / random / get_bit_generator
cython_function_or_method
numpy.random:get_bit_generator
Signature
def get_bit_generator ( ) Summary
Returns the singleton RandomState's bit generator
Returns
: BitGeneratorThe bit generator that underlies the singleton RandomState instance
Notes
The singleton RandomState provides the random variate generators in the numpy.random namespace. This function, and its counterpart set method, provides a path to hot-swap the default MT19937 bit generator with a user provided alternative. These function are intended to provide a continuous path where a single underlying bit generator can be used both with an instance of Generator and with the singleton instance of RandomState.
See also
Aliases
-
numpy.random.get_bit_generator