bundles / numpy latest / numpy / random / _pickle / __randomstate_ctor
function
numpy.random._pickle:__randomstate_ctor
source: build-install/usr/lib/python3.14/site-packages/numpy/random/_pickle.py:68
Signature
def __randomstate_ctor(bit_generator_name = MT19937, bit_generator_ctor = <function __bit_generator_ctor at 0x0000>)Summary
Pickling helper function that returns a legacy RandomState-like object
Parameters
bit_generator_name: strString containing the core BitGenerator's name
bit_generator_ctor: callable, optionalCallable function that takes bit_generator_name as its only argument and returns an instantized bit generator.
Returns
rs: RandomStateLegacy RandomState using the named core BitGenerator
Aliases
numpy.random._pickle.__randomstate_ctor