3
���h$ � 2 @ s$ d Z ddddddddd d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2g2Zd3d4lmZ d3d5lmZ d3d6lmZ d3d7lmZmZ d3d8l m
Z
mZ d3d9lm
Z
d3d:lmZ d3d;lmZ d3d<lmZ d3d=lT ed>d?d@dAdBdCdDdEdFg 7 ZdGdH� ZdIdJlmZ ee�Z[dKS )LaU
========================
Random Number Generation
========================
Use ``default_rng()`` to create a `Generator` and call its methods.
=============== =========================================================
Generator
--------------- ---------------------------------------------------------
Generator Class implementing all of the random number distributions
default_rng Default constructor for ``Generator``
=============== =========================================================
============================================= ===
BitGenerator Streams that work with Generator
--------------------------------------------- ---
MT19937
PCG64
Philox
SFC64
============================================= ===
============================================= ===
Getting entropy to initialize a BitGenerator
--------------------------------------------- ---
SeedSequence
============================================= ===
Legacy
------
For backwards compatibility with previous versions of numpy before 1.17, the
various aliases to the global `RandomState` methods are left alone and do not
use the new `Generator` API.
==================== =========================================================
Utility functions
-------------------- ---------------------------------------------------------
random Uniformly distributed floats over ``[0, 1)``
bytes Uniformly distributed random bytes.
permutation Randomly permute a sequence / generate a random sequence.
shuffle Randomly permute a sequence in place.
choice Random sample from 1-D array.
==================== =========================================================
==================== =========================================================
Compatibility
functions - removed
in the new API
-------------------- ---------------------------------------------------------
rand Uniformly distributed values.
randn Normally distributed values.
ranf Uniformly distributed floating point numbers.
random_integers Uniformly distributed integers in a given range.
(deprecated, use ``integers(..., closed=True)`` instead)
random_sample Alias for `random_sample`
randint Uniformly distributed integers in a given range
seed Seed the legacy random number generator.
==================== =========================================================
==================== =========================================================
Univariate
distributions
-------------------- ---------------------------------------------------------
beta Beta distribution over ``[0, 1]``.
binomial Binomial distribution.
chisquare :math:`\chi^2` distribution.
exponential Exponential distribution.
f F (Fisher-Snedecor) distribution.
gamma Gamma distribution.
geometric Geometric distribution.
gumbel Gumbel distribution.
hypergeometric Hypergeometric distribution.
laplace Laplace distribution.
logistic Logistic distribution.
lognormal Log-normal distribution.
logseries Logarithmic series distribution.
negative_binomial Negative binomial distribution.
noncentral_chisquare Non-central chi-square distribution.
noncentral_f Non-central F distribution.
normal Normal / Gaussian distribution.
pareto Pareto distribution.
poisson Poisson distribution.
power Power distribution.
rayleigh Rayleigh distribution.
triangular Triangular distribution.
uniform Uniform distribution.
vonmises Von Mises circular distribution.
wald Wald (inverse Gaussian) distribution.
weibull Weibull distribution.
zipf Zipf's distribution over ranked data.
==================== =========================================================
==================== ==========================================================
Multivariate
distributions
-------------------- ----------------------------------------------------------
dirichlet Multivariate generalization of Beta distribution.
multinomial Multivariate generalization of the binomial distribution.
multivariate_normal Multivariate generalization of the normal distribution.
==================== ==========================================================
==================== =========================================================
Standard
distributions
-------------------- ---------------------------------------------------------
standard_cauchy Standard Cauchy-Lorentz distribution.
standard_exponential Standard exponential distribution.
standard_gamma Standard Gamma distribution.
standard_normal Standard normal distribution.
standard_t Standard Student's t-distribution.
==================== =========================================================
==================== =========================================================
Internal functions
-------------------- ---------------------------------------------------------
get_state Get tuple representing internal state of generator.
set_state Set state of generator.
==================== =========================================================
�betaZbinomial�bytesZ chisquare�choiceZ dirichletZexponential�f�gammaZ geometricZ get_stateZgumbelZhypergeometricZlaplaceZlogisticZ lognormalZ logseriesZmultinomialZmultivariate_normalZnegative_binomialZnoncentral_chisquareZnoncentral_fZnormalZparetoZpermutationZpoisson�powerZrand�randintZrandn�randomZrandom_integersZ
random_sampleZranfZrayleigh�sample�seedZ set_state�shuffleZstandard_cauchyZstandard_exponentialZstandard_gammaZstandard_normalZ
standard_t�
triangular�uniformZvonmisesZwaldZweibullZzipf� )�_pickle)�_common)�_bounded_integers)� Generator�default_rng)�SeedSequence�BitGenerator)�MT19937)�PCG64)�Philox)�SFC64)�*r �RandomStater r r r r r r c C s
t dd�S )a� Return a RandomState instance.
This function exists solely to assist (un)pickling.
Note that the state of the RandomState returned here is irrelevant, as this
function's entire purpose is to return a newly allocated RandomState whose
state pickle can set. Consequently the RandomState returned by this function
is a freshly allocated copy with a seed=0.
See https://github.com/numpy/numpy/issues/4763 for a detailed discussion
� )r
)r � r r �6/tmp/pip-build-5_djhm0z/numpy/numpy/random/__init__.py�__RandomState_ctor� s
r r )�PytestTesterN)�__doc__�__all__� r r r Z
_generatorr r Z
bit_generatorr r Z_mt19937r Z_pcg64r Z_philoxr Z_sfc64r Zmtrandr Znumpy._pytesttesterr �__name__�testr r r r �<module>| s�
|