This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

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

bitgen

A 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

get_bit_generator
numpy.random.Generator

Aliases

  • numpy.random.set_bit_generator