{ } Raw JSON

bundles / numpy 2.4.4 / 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

: BitGenerator

The 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

numpy.random.Generator
set_bit_generator

Aliases

  • numpy.random.get_bit_generator