brainpy.math.random
: Random Number Generations#
Random Sampling Functions#
Sets a new random seed. |
|
Create a new seed from the current seed. |
|
Create multiple seeds from the current seed. |
|
|
|
Random values in a given shape. |
|
Return random integers from low (inclusive) to high (exclusive). |
|
Random integers of type np.int_ between low and high, inclusive. |
|
Return a sample (or samples) from the "standard normal" distribution. |
|
Return random floats in the half-open interval [0.0, 1.0). |
|
Return random floats in the half-open interval [0.0, 1.0). |
|
This is an alias of random_sample. |
|
This is an alias of random_sample. |
|
Generates a random sample from a given 1-D array |
|
Randomly permute a sequence, or return a permuted range. |
|
Modify a sequence in-place by shuffling its contents. |
|
Draw samples from a Beta distribution. |
|
Draw samples from an exponential distribution. |
|
Draw samples from a Gamma distribution. |
|
Draw samples from a Gumbel distribution. |
|
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay). |
|
Draw samples from a logistic distribution. |
|
Draw random samples from a normal (Gaussian) distribution. |
|
Draw samples from a Pareto II or Lomax distribution with specified shape. |
|
Draw samples from a Poisson distribution. |
|
Draw samples from a standard Cauchy distribution with mode = 0. |
|
Draw samples from the standard exponential distribution. |
|
Draw samples from a standard Gamma distribution. |
|
Draw samples from a standard Normal distribution (mean=0, stdev=1). |
|
Draw samples from a standard Student's t distribution with df degrees of freedom. |
|
Draw samples from a uniform distribution. |
|
Sample truncated standard normal random values with given shape and dtype. |
|
Sample Bernoulli random values with given shape and mean. |
|
Draw samples from a log-normal distribution. |
|
Draw samples from a binomial distribution. |
|
Draw samples from a chi-square distribution. |
|
Draw samples from the Dirichlet distribution. |
|
Draw samples from the geometric distribution. |
|
Draw samples from an F distribution. |
|
Draw samples from a Hypergeometric distribution. |
|
Draw samples from a logarithmic series distribution. |
|
Draw samples from a multinomial distribution. |
|
Draw random samples from a multivariate normal distribution. |
|
Draw samples from a negative binomial distribution. |
|
Draw samples from a noncentral chi-square distribution. |
|
Draw samples from the noncentral F distribution. |
|
Draws samples in [0, 1] from a power distribution with positive exponent a - 1. |
|
Draw samples from a Rayleigh distribution. |
|
Draw samples from the triangular distribution over the interval |
|
Draw samples from a von Mises distribution. |
|
Draw samples from a Wald, or inverse Gaussian, distribution. |
|
Draw samples from a Weibull distribution. |
|
Sample from a Weibull distribution. |
|
Draw samples from a Zipf distribution. |
|
Sample from a one sided Maxwell distribution. |
|
Sample Student’s t random values. |
|
Sample uniformly from the orthogonal group O(n). |
|
Sample log-gamma random values. |
|
Sample random values from categorical distributions. |
|
Similar to |
|
Similar to |
|
Similar to |
Random Generator#
RandomState that track the random generator state. |
|
alias of |
|
RandomState that track the random generator state. |