/opt/imh-python/lib/python3.9/site-packages/numpy/random
NameSizeModeActions
lib/-0755rm
tests/-0755rm
_examples/-0755rm
__pycache__/-0755rm
bit_generator.cpython-39-x86_64-linux-gnu.so2464000755editdlrm
bit_generator.pxd10070644editdlrm
bit_generator.pyi35100644editdlrm
c_distributions.pxd63440644editdlrm
LICENSE.md35110644editdlrm
mtrand.cpython-39-x86_64-linux-gnu.so7877200755editdlrm
mtrand.pyi197530644editdlrm
_bounded_integers.cpython-39-x86_64-linux-gnu.so3831600755editdlrm
_bounded_integers.pxd16690644editdlrm
_common.cpython-39-x86_64-linux-gnu.so2761520755editdlrm
_common.pxd49390644editdlrm
_generator.cpython-39-x86_64-linux-gnu.so9923760755editdlrm
_generator.pyi224420644editdlrm
_mt19937.cpython-39-x86_64-linux-gnu.so1202640755editdlrm
_mt19937.pyi7240644editdlrm
_pcg64.cpython-39-x86_64-linux-gnu.so1264240755editdlrm
_pcg64.pyi10910644editdlrm
_philox.cpython-39-x86_64-linux-gnu.so1074080755editdlrm
_philox.pyi9780644editdlrm
_pickle.py23180644editdlrm
_sfc64.cpython-39-x86_64-linux-gnu.so767360755editdlrm
_sfc64.pyi7090644editdlrm
__init__.pxd4310644editdlrm
__init__.py75060644editdlrm
__init__.pyi21430644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/numpy/random/_pickle.py (2318B)
from .mtrand import RandomState from ._philox import Philox from ._pcg64 import PCG64, PCG64DXSM from ._sfc64 import SFC64 from ._generator import Generator from ._mt19937 import MT19937 BitGenerators = {'MT19937': MT19937, 'PCG64': PCG64, 'PCG64DXSM': PCG64DXSM, 'Philox': Philox, 'SFC64': SFC64, } def __bit_generator_ctor(bit_generator_name='MT19937'): """ Pickling helper function that returns a bit generator object Parameters ---------- bit_generator_name : str String containing the name of the BitGenerator Returns ------- bit_generator : BitGenerator BitGenerator instance """ if bit_generator_name in BitGenerators: bit_generator = BitGenerators[bit_generator_name] else: raise ValueError(str(bit_generator_name) + ' is not a known ' 'BitGenerator module.') return bit_generator() def __generator_ctor(bit_generator_name="MT19937", bit_generator_ctor=__bit_generator_ctor): """ Pickling helper function that returns a Generator object Parameters ---------- bit_generator_name : str String containing the core BitGenerator's name 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 """ return Generator(bit_generator_ctor(bit_generator_name)) def __randomstate_ctor(bit_generator_name="MT19937", bit_generator_ctor=__bit_generator_ctor): """ Pickling helper function that returns a legacy RandomState-like object Parameters ---------- bit_generator_name : str String containing the core BitGenerator's name bit_generator_ctor : callable, optional Callable function that takes bit_generator_name as its only argument and returns an instantized bit generator. Returns ------- rs : RandomState Legacy RandomState using the named core BitGenerator """ return RandomState(bit_generator_ctor(bit_generator_name))