bundles / numpy 2.4.3 / numpy / random / set_bit_generator
cython_function_or_method
numpy.random:set_bit_generator
Signature
def set_bit_generator ( bitgen ) Summary
Sets the singleton RandomState's bit generator
Parameters
bitgenA bit generator instance
Notes
The singleton RandomState provides the random variate generators in the numpy.random``namespace. This function, and its counterpart get 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.set_bit_generator