Random sampling (dpnp.random)

Simple random data

dpnp.random.rand

Random values in a given shape.

dpnp.random.randn

Return a sample (or samples) from the "standard normal" distribution.

dpnp.random.randint

Return random integers from low (inclusive) to high (exclusive).

dpnp.random.random_integers

Random integers between low and high, inclusive.

dpnp.random.random_sample

Return random floats in the half-open interval [0.0, 1.0).

dpnp.random.random

Return random floats in the half-open interval [0.0, 1.0).

dpnp.random.ranf

Return random floats in the half-open interval [0.0, 1.0).

dpnp.random.sample

Return random floats in the half-open interval [0.0, 1.0).

dpnp.random.choice

Generates a random sample from a given 1-D array.

dpnp.random.bytes

Return random bytes.

Permutations

dpnp.random.shuffle

Modify a sequence in-place by shuffling its contents.

dpnp.random.permutation

Randomly permute a sequence, or return a permuted range.

Distributions

dpnp.random.beta

Draw samples from a Beta distribution.

dpnp.random.binomial

Draw samples from a binomial distribution.

dpnp.random.chisquare

Draw samples from a chi-square distribution.

dpnp.random.dirichlet

Draw samples from the Dirichlet distribution.

dpnp.random.exponential

Draw samples from an exponential distribution.

dpnp.random.f

Draw samples from an F distribution.

dpnp.random.gamma

Draw samples from a Gamma distribution.

dpnp.random.geometric

Draw samples from the geometric distribution.

dpnp.random.gumbel

Draw samples from a Gumbel distribution.

dpnp.random.hypergeometric

Draw samples from a Hypergeometric distribution.

dpnp.random.laplace

Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay).

dpnp.random.logistic

Draw samples from a logistic distribution.

dpnp.random.lognormal

Draw samples from a log-normal distribution.

dpnp.random.logseries

Draw samples from a logarithmic series distribution.

dpnp.random.multinomial

Draw samples from a multinomial distribution.

dpnp.random.multivariate_normal

Draw random samples from a multivariate normal distribution.

dpnp.random.negative_binomial

Draw samples from a negative binomial distribution.

dpnp.random.noncentral_chisquare

Draw samples from a non-central chi-square distribution.

dpnp.random.noncentral_f

Draw samples from the non-central F distribution.

dpnp.random.normal

Draw random samples from a normal (Gaussian) distribution.

dpnp.random.pareto

Draw samples from a Pareto II or Lomax distribution with specified shape.

dpnp.random.poisson

Draw samples from a Poisson distribution.

dpnp.random.power

Draws samples in [0, 1] from a power distribution with positive exponent a - 1.

dpnp.random.rayleigh

Draw samples from a Rayleigh distribution.

dpnp.random.standard_cauchy

Draw samples from a standard Cauchy distribution with mode = 0.

dpnp.random.standard_exponential

Draw samples from the standard exponential distribution.

dpnp.random.standard_gamma

Draw samples from a standard Gamma distribution.

dpnp.random.standard_normal

Draw samples from a standard Normal distribution (mean=0, stdev=1).

dpnp.random.standard_t

Draw samples from a standard Student’s t distribution with df degrees of freedom.

dpnp.random.triangular

Draw samples from the triangular distribution over the interval [left, right].

dpnp.random.uniform

Draw samples from a uniform distribution.

dpnp.random.vonmises

Draw samples from a von Mises distribution.

dpnp.random.wald

Draw samples from a Wald, or inverse Gaussian, distribution.

dpnp.random.weibull

Draw samples from a Weibull distribution.

dpnp.random.zipf

Returns an array of samples drawn from the Zipf distribution.

Random generator

dpnp.random.RandomState

A container for the Mersenne Twister pseudo-random number generator.

dpnp.random.seed

Reseed a legacy MT19937 random number generator engine.