Expand description
Collection of functions related to random number generation
Structs§
- Random
State - Random state for reproducible random number generation.
Enums§
- Shape
OrCount - Shape or count for the categorical distribution.
Functions§
- bernoulli
- Generate Bernoulli random values with a given
pvalue. - bernoulli_
device Deprecated - Compatibility shim for
bernoulli. - categorical
- Sample from a categorical distribution.
- categorical_
device Deprecated - Compatibility shim for
categorical. - gumbel
- Sample from the standard Gumbel distribution.
- gumbel_
device Deprecated - Compatibility shim for
gumbel. - key
- Get a PRNG key from a seed.
- multivariate_
normal - Generate jointly-normal random samples given a mean and covariance.
- multivariate_
normal_ device Deprecated - Compatibility shim for
multivariate_normal. - normal
- Generate normally distributed random numbers.
- normal_
device Deprecated - Compatibility shim for
normal. - randint
- Generate random integers from the given interval (
lower:andupper:). - randint_
device Deprecated - Compatibility shim for
randint. - seed
- Seed the current thread’s default random number generator.
- split
- Split a PRNG key into two keys and return a tuple.
- split_
device Deprecated - Compatibility shim for
split. - truncated_
normal - Generate values from a truncated normal distribution between
lowandhigh. - truncated_
normal_ device Deprecated - Compatibility shim for
truncated_normal. - uniform
- Generate uniformly distributed random numbers.
The values are sampled uniformly in the half-open interval
[lower, upper). The lower and upper bound can be scalars or arrays and must be broadcastable toshape. - uniform_
device Deprecated - Compatibility shim for
uniform. - with_
random_ state - Use the given random state for the scope of
f