/snap/core22/2411/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc289770644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc424320644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc136700644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc706740644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc170000644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /snap/core22/2411/usr/lib/python3.10/__pycache__/random.cpython-310.pyc (22748B)
o `wiŁ@sdZddlmZddlmZmZm Z m Z m ZddlmZmZmZmZddlmZmZmZddlmZddl m!Z"m#Z$ddl%m&Z'dd l(m)Z*m+Z,dd l-m-Z.dd lZ/dd l0Z0zdd l1m2Z1Wne3ymdd l4m2Z1Ynwgd Z5dededZ6edZ7dedZ8dZ9de9 Z:dZ;Gddde0j<Ze>j?Z?e>j@Z@e>jAZAe>jBZBe>jCZCe>jDZDe>jEZEe>jFZFe>jGZGe>jHZHe>jIZIe>jJZJe>jKZKe>jLZLe>jMZMe>jNZNe>jOZOe>jPZPe>jQZQe>jRZRe>jSZSe>jTZTe>jUZUddZVd#ddZWeXe/d re/jYe>j?d!eZd"kreWd Sd S)$aRandom variable generators. bytes ----- uniform bytes (values between 0 and 255) integers -------- uniform within range sequences --------- pick random element pick random sample pick weighted random sample generate random permutation distributions on the real line: ------------------------------ uniform triangular normal (Gaussian) lognormal negative exponential gamma beta pareto Weibull distributions on the circle (angles 0 to 2pi) --------------------------------------------- circular uniform von Mises General notes on the underlying Mersenne Twister core generator: * The period is 2**19937-1. * It is one of the most extensively tested generators in existence. * The random() method is implemented in C, executes in a single Python step, and is, therefore, threadsafe. )warn)logexppieceil)sqrtacoscossin)taufloorisfinite)urandom)SetSequence)index) accumulaterepeat)bisectN)sha512)Random SystemRandom betavariatechoicechoices expovariate gammavariategauss getrandbitsgetstatelognormvariate normalvariate paretovariate randbytesrandintrandom randrangesampleseedsetstateshuffle triangularuniformvonmisesvariateweibullvariateg@@?@5cs.eZdZdZdZdBddZdCfdd Zfd d Zfd d Zd dZ ddZ ddZ ddZ ddZ de>fddZe ZddZdefddZddZd d!ZdBd"d#Zdd$d%d&ZdBddd'd(d)Zd*d+ZdDd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#Z$S)EraRandom number generator base class used by bound module functions. Used to instantiate instances of Random to get generators that don't share state. Class Random can also be subclassed if you want to use a different basic generator of your own devising: in that case, override the following methods: random(), seed(), getstate(), and setstate(). Optionally, implement a getrandbits() method so that randrange() can cover arbitrarily large ranges. NcCs||d|_dS)zeInitialize an instance. Optional argument x controls seeding, as for Random.seed(). N)r) gauss_next)selfxr</usr/lib/python3.10/random.py__init__ws  zRandom.__init__r6cs|dkrBt|ttfrBt|tr|dn|}|r!t|dd>nd}tt|D] }d||Ad@}q(|t|N}|dkr?dn|}n5|d krdt|tttfrdt|trW|}t |t | d }nt|t d t ttttfswtd td t|d |_d S) a\Initialize internal state from a seed. The only supported seed types are None, int, float, str, bytes, and bytearray. None or no argument seeds from current time or from an operating system specific randomness source if available. If *a* is an int, all bits are used. For version 2 (the default), all of the bits are used if *a* is a str, bytes, or bytearray. For version 1 (provided for reproducing random sequences from older versions of Python), the algorithm for str and bytes generates a narrower range of seeds. r7zlatin-1riCBlr6bigNzSeeding based on hashing is deprecated since Python 3.9 and will be removed in a subsequent version. The only supported seed types are: None, int, float, str, bytes, and bytearray.) isinstancestrbytesdecodeordmaplen bytearrayencodeint from_bytes_sha512digesttypefloat_warnDeprecationWarningsuperr)r9)r:aversionr;c __class__r<r=r)s"    z Random.seedcs|jt|jfS)z9Return internal state; can be passed to setstate() later.)VERSIONrTr r9r:rXr<r=r zRandom.getstatec s|d}|dkr|\}}|_t|dS|dkrC|\}}|_z tdd|D}Wnty:}zt|d}~wwt|dStd||jf)z:Restore internal state from object returned by getstate().rr8r6css|]}|dVqdS)lNr<).0r;r<r<r= sz"Random.setstate..Nz?state with version %s passed to Random.setstate() of version %s)r9rTr*tuple ValueError TypeErrorrZ)r:staterV internalstaterrXr<r=r*s   zRandom.setstatecCs|SN)r r[r<r<r= __getstate__szRandom.__getstate__cCs||dSrd)r*)r:rbr<r<r= __setstate__szRandom.__setstate__cCs|jd|fS)Nr<)rYr r[r<r<r= __reduce__szRandom.__reduce__cKsP|jD]"}d|jvr dSd|jvr|j|_dSd|jvr%|j|_dSqdS)aControl how subclasses generate random integers. The algorithm a subclass can use depends on the random() and/or getrandbits() implementation available to it and determines whether it can generate random integers from arbitrarily large ranges. _randbelowrr&N)__mro____dict___randbelow_with_getrandbitsrh_randbelow_without_getrandbits)clskwargsrWr<r<r=__init_subclass__s   zRandom.__init_subclass__cCs:|sdS|j}|}||}||kr||}||ks|S)z;Return a random int in the range [0,n). Returns 0 if n==0.r)r bit_length)r:nrkrr<r<r=rksz"Random._randbelow_with_getrandbitsr7cCsp|j}||krtdt||S|dkrdS||}|||}|}||kr0|}||ks)t|||S)zReturn a random int in the range [0,n). Returns 0 if n==0. The implementation does not use getrandbits, but only random. zUnderlying random() generator does not supply enough bits to choose from a population range this large. To remove the range limitation, add a getrandbits() method.r)r&rR_floor)r:rqmaxsizer&remlimitrsr<r<r=rls z%Random._randbelow_without_getrandbitscCs||d|dS)Generate n random bytes.little)rto_bytesr:rqr<r<r=r$szRandom.randbytesc Cszt|}Wn!ty't|}||krtdtdtdtdtdYnw|durA|tur4td|dkr=||Stdzt|}Wn!tyht|}||kr`tdtdtd tdtdYnw||}zt|}Wn!tyt|}||krtdtdtd tdtdYnw|d kr|dkr|||Std |||f|dkr||d |}n|dkr||d |}ntd |dkrtd||||S)zChoose a random item from range(start, stop[, step]). This fixes the problem with randint() which includes the endpoint; in Python this is usually not what you want. z.randrange() will raise TypeError in the futurer6z!non-integer arg 1 for randrange()zwnon-integer arguments to randrange() have been deprecated since Python 3.10 and will be removed in a subsequent versionNz Missing a non-None stop argumentrzempty range for randrange()z non-integer stop for randrange()z non-integer step for randrange()r7z(empty range for randrange() (%d, %d, %d)zzero step for randrange())_indexrarLrRrSr`_ONErh) r:startstopstepistartistopwidthisteprqr<r<r=r'$st          zRandom.randrangecCs|||dS)zJReturn random integer in range [a, b], including both end points. r7)r'r:rUbr<r<r=r%nszRandom.randintcCs||t|S)z2Choose a random element from a non-empty sequence.)rhrI)r:seqr<r<r=rwsz Random.choicecCs|dur(|j}ttdt|D]}||d}||||||<||<qdStdtdt}ttdt|D]}|||d}||||||<||<q9dS)zShuffle list x in place, and return None. Optional argument random is a 0-argument function returning a random float in [0.0, 1.0); if it is the default None, the standard random.random will be used. Nr7zuThe *random* parameter to shuffle() has been deprecated since Python 3.9 and will be removed in a subsequent version.r6)rhreversedrangerIrRrSrt)r:r;r& randbelowijr r<r<r=r+|s  zRandom.shuffle)countscsttsttrtdtdtntdt}|dur\tt |t|kr1t d }t|t s>td|dkrFt d|j t||d }tfd d |DS|j}d|krl|ksqt d t d dg|}d } |dkr| dtt|dd7} || krt} t|D]} ||| } | | || <| || d| | <q|St} | j}t|D]} ||} | | vr||} | | vs|| | || <q|S)amChooses k unique random elements from a population sequence or set. Returns a new list containing elements from the population while leaving the original population unchanged. The resulting list is in selection order so that all sub-slices will also be valid random samples. This allows raffle winners (the sample) to be partitioned into grand prize and second place winners (the subslices). Members of the population need not be hashable or unique. If the population contains repeats, then each occurrence is a possible selection in the sample. Repeated elements can be specified one at a time or with the optional counts parameter. For example: sample(['red', 'blue'], counts=[4, 2], k=5) is equivalent to: sample(['red', 'red', 'red', 'red', 'blue', 'blue'], k=5) To choose a sample from a range of integers, use range() for the population argument. This is especially fast and space efficient for sampling from a large population: sample(range(10000000), 60) z\Sampling from a set deprecated since Python 3.9 and will be removed in a subsequent version.r6zAPopulation must be a sequence. For dicts or sets, use sorted(d).Nz2The number of counts does not match the populationzCounts must be integersrz)Total of counts must be greater than zero)rrcsg|] }|qSr<r<)r]sr cum_counts populationr<r= sz!Random.sample..z,Sample larger than population or is negativer0r8r7)rC _Sequence_SetrRrSr_rarIlist _accumulater`poprLr(r_bisectrh_ceil_logsetadd)r:rrrrrqtotal selectionsrresultsetsizepoolrrselected selected_addr<rr=r(s\ 5           z Random.sample) cum_weightsrrcs|jtdurD|dur$td7fddtd|DSztt|WntyCt|ts9|}td|dw|durLtdtkrVt ddddkrdt d t slt d t d fd dtd|DS) zReturn a k sized list of population elements chosen with replacement. If the relative weights or cumulative weights are not specified, the selections are made with equal probability. Ncsg|] }qSr<r<r]r)r rqrr&r<r=rsz"Random.choices..z4The number of choices must be a keyword argument: k=z2Cannot specify both weights and cumulative weightsz3The number of weights does not match the populationr@z*Total of weights must be greater than zerozTotal of weights must be finiter7cs$g|]}dqS)rr<r)rrhirr&rr<r=rs) r&rIrt_repeatrrrarCrLr` _isfiniter)r:rweightsrrrr<)rrr rrqrr&rr=rsB    zRandom.choicescCs||||S)zHGet a random number in the range [a, b) or [a, b] depending on rounding.r&rr<r<r=r-"r\zRandom.uniformrr3cCsz|}z|dur dn||||}Wn ty|YSw||kr1d|}d|}||}}|||t||S)zTriangular distribution. Continuous distribution bounded by given lower and upper limits, and having a given mode value in-between. http://en.wikipedia.org/wiki/Triangular_distribution N?r3)r&ZeroDivisionError_sqrt)r:lowhighmodeurWr<r<r=r,&s    zRandom.triangularcCsR|j} |}d|}t|d|}||d}|t| kr"nq|||S)z\Normal distribution. mu is the mean, and sigma is the standard deviation. Tr3rr2)r& NV_MAGICCONSTr)r:musigmar&u1u2zzzr<r<r=r":s    zRandom.normalvariatecCs`|j}|j}d|_|dur*|t}tdtd|}t||}t|||_|||S)zGaussian distribution. mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function. Not thread-safe without a lock around calls. Ngr3)r&r9TWOPIrr_cos_sin)r:rrr&rx2pig2radr<r<r=rOs   z Random.gausscCst|||S)zLog normal distribution. If you take the natural logarithm of this distribution, you'll get a normal distribution with mean mu and standard deviation sigma. mu can have any value, and sigma must be greater than zero. )_expr")r:rrr<r<r=r!uszRandom.lognormvariatecCstd| |S)a^Exponential distribution. lambd is 1.0 divided by the desired mean. It should be nonzero. (The parameter would be called "lambda", but that is a reserved word in Python.) Returned values range from 0 to positive infinity if lambd is positive, and from negative infinity to 0 if lambd is negative. r3)rr&)r:lambdr<r<r=rszRandom.expovariatecCs|j}|dkr t|Sd|}|td||} |}tt|}|||}|} | d||ks?| d|t|kr@nqd|} | |d| |} |} | dkr`|t| t} | S|t| t} | S)aFCircular data distribution. mu is the mean angle, expressed in radians between 0 and 2*pi, and kappa is the concentration parameter, which must be greater than or equal to zero. If kappa is equal to zero, this distribution reduces to a uniform random angle over the range 0 to 2*pi. gư>rr3)r&rrr_pir_acos)r:rkappar&rrsrrdrqfu3thetar<r<r=r.s*   $ zRandom.vonmisesvariatecCsz|dks|dkr td|j}|dkrktd|d}|t}||} |}d|kr1dks3nq#d|}t|d||} |t| } |||} ||| | } | td| dksf| t| krj| |Sq$|dkrytd| |S |} t|t}|| }|dkr|d|} n t||| } |}|dkr|| |dkr | |Sn |t| kr | |Sqz) aZGamma distribution. Not the gamma function! Conditions on the parameters are alpha > 0 and beta > 0. The probability distribution function is: x ** (alpha - 1) * math.exp(-x / beta) pdf(x) = -------------------------------------- math.gamma(alpha) * beta ** alpha rz*gammavariate: alpha and beta must be > 0.0r3r1TgHz>gP?r4)r`r&rLOG4rr SG_MAGICCONST_e)r:alphabetar&ainvbbbcccrrvr;rrsrrpr<r<r=rsL      zRandom.gammavariatecCs(||d}|r||||dSdS)zBeta distribution. Conditions on the parameters are alpha > 0 and beta > 0. Returned values range between 0 and 1. r3r)r)r:rryr<r<r=rs zRandom.betavariatecCsd|}|d|S)z3Pareto distribution. alpha is the shape parameter.r3gr)r:rrr<r<r=r#s  zRandom.paretovariatecCs"d|}|t| d|S)zfWeibull distribution. alpha is the scale parameter and beta is the shape parameter. r3)r&r)r:rrrr<r<r=r/s zRandom.weibullvariaterd)Nr6)rr3N)%__name__ __module__ __qualname____doc__rZr>r)r r*rerfrgrorkBPFrlrhr$r~r'r%rr+r(rr-r,r"rr!rr.rrr#r/ __classcell__r<r<rXr=rgs@  * !  J d( & *Arc@s@eZdZdZddZddZddZdd Zd d ZeZ Z d S) rzAlternate random number generator using sources provided by the operating system (such as /dev/urandom on Unix or CryptGenRandom on Windows). Not available on all systems (see os.urandom() for details). cCsttddd?tS)z3Get the next random number in the range [0.0, 1.0).r?rBr8)rLrM_urandom RECIP_BPFr[r<r<r=r&6szSystemRandom.randomcCs<|dkrtd|dd}tt|d}||d|?S)z:getrandbits(k) -> x. Generates an int with k random bits.rz#number of bits must be non-negativer?ryrB)r`rLrMr)r:rrnumbytesr;r<r<r=r:s  zSystemRandom.getrandbitscCst|S)rx)rr|r<r<r=r$BszSystemRandom.randbytescOsdS)z.z.3fz sec, z times z"avg %g, stddev %g, min %g, max %g ) statisticsrrtimerrminmaxprintr) rqrrrmeanrt0datat1xbarrrrr<rr=_test_generatorvs   rcCst|tdt|tdt|tdt|tdt|tdt|tdt|tdt|tdt|tdt|tdt|td t|td t|td t|tdt|td t|td dS)Nr<)rr3)g{Gz?r3)皙?r3)rr1)rr3)g?r3)r3r3)r1r3)g4@r3)gi@r3)@r)rr3gUUUUUU?) rr&r"r!r.rrrr,)Nr<r<r=_tests               rfork)after_in_child__main__)r)[rwarningsrrRmathrrrrrrrrrrrrr rr rr rr rr rtrrosrr_collections_abcrrrroperatorrr} itertoolsrrrrrr_os_randomrNr ImportErrorhashlib__all__rrrrrr~rr_instr)r&r-r,r%rr'r(r+rr"r!rr.rrrr#r/r r*rr$rrhasattrregister_at_forkrr<r<r<r=s| /      K,