You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / random / _pickle / __generator_ctor

function

numpy.random._pickle:__generator_ctor

source: /numpy/random/_pickle.py :43

Signature

def   __generator_ctor ( bit_generator_name = MT19937 bit_generator_ctor = <function __bit_generator_ctor at 0x0000> )

Summary

Pickling helper function that returns a Generator object

Parameters

bit_generator_name : str or BitGenerator

String containing the core BitGenerator's name or a BitGenerator instance

bit_generator_ctor : callable, optional

Callable function that takes bit_generator_name as its only argument and returns an instantized bit generator.

Returns

rg : Generator

Generator using the named core BitGenerator

Aliases

  • numpy.random._pickle.__generator_ctor