/usr/local/lib64/python3.6/site-packages/numpy/random
NameSizeModeActions
lib/-0755rm
tests/-0755rm
_examples/-0755rm
__pycache__/-0755rm
bit_generator.cpython-36m-x86_64-linux-gnu.so2161520755editdlrm
bit_generator.pxd10050644editdlrm
c_distributions.pxd60330644editdlrm
mtrand.cpython-36m-x86_64-linux-gnu.so7291760755editdlrm
setup.py60760644editdlrm
_bounded_integers.cpython-36m-x86_64-linux-gnu.so3830240755editdlrm
_bounded_integers.pxd16690644editdlrm
_common.cpython-36m-x86_64-linux-gnu.so2699520755editdlrm
_common.pxd47490644editdlrm
_generator.cpython-36m-x86_64-linux-gnu.so8615280755editdlrm
_mt19937.cpython-36m-x86_64-linux-gnu.so1164880755editdlrm
_pcg64.cpython-36m-x86_64-linux-gnu.so844560755editdlrm
_philox.cpython-36m-x86_64-linux-gnu.so1026960755editdlrm
_pickle.py22470644editdlrm
_sfc64.cpython-36m-x86_64-linux-gnu.so680800755editdlrm
__init__.pxd4310644editdlrm
__init__.py74600644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/numpy/random/_pickle.py (2247B)
from .mtrand import RandomState from ._philox import Philox from ._pcg64 import PCG64 from ._sfc64 import SFC64 from ._generator import Generator from ._mt19937 import MT19937 BitGenerators = {'MT19937': MT19937, 'PCG64': PCG64, 'Philox': Philox, 'SFC64': SFC64, } def __generator_ctor(bit_generator_name='MT19937'): """ Pickling helper function that returns a Generator object Parameters ---------- bit_generator_name: str String containing the core BitGenerator Returns ------- rg: Generator Generator using the named core BitGenerator """ 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 Generator(bit_generator()) 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 __randomstate_ctor(bit_generator_name='MT19937'): """ Pickling helper function that returns a legacy RandomState-like object Parameters ---------- bit_generator_name: str String containing the core BitGenerator Returns ------- rs: RandomState Legacy RandomState using the named core BitGenerator """ 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 RandomState(bit_generator())