K i ddlmZddlmZddlmZmZddlmZddl m Z ddl m Z ddl mZeeeee dZdd eee zfd Zd efd Zd efd Zy)) Generator)MT19937)PCG64 PCG64DXSM)Philox)SFC64) BitGenerator) RandomState)rrrrrr bit_generatorct|tr |}|S|tvrt|}|Stt |dz)a( Pickling helper function that returns a bit generator object Parameters ---------- bit_generator : type[BitGenerator] or str BitGenerator class or string containing the name of the BitGenerator Returns ------- BitGenerator BitGenerator instance z$ is not a known BitGenerator module.) isinstancetype BitGenerators ValueErrorstr)r bit_gen_classs Z/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/random/_pickle.py__bit_generator_ctorrsX-&%  ? - '%m4 ?   !G G  cZt|tr t|St||S)a 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 )r r rbit_generator_namebit_generator_ctors r__generator_ctorr+s-&$l3+,, '(:; <>rN) _generatorr_mt19937r_pcg64rr_philoxr_sfc64rr r mtrandr rrrrrrrrr$s`!$'#'!  d<.@(@4)2(<=2+4*>?r