Pseudorandom number generator (PRNG) array creation functions.
var ns = require( '@stdlib/random/array' );
Namespace containing array creation pseudorandom number generator (PRNG) functions.
var o = ns;
// returns {...}
The namespace contains the following:
arcsine( len, a, b[, options] )
: create an array containing pseudorandom numbers drawn from an arcsine distribution.bernoulli( len, p[, options] )
: create an array containing pseudorandom numbers drawn from a Bernoulli distribution.beta( len, alpha, beta[, options] )
: create an array containing pseudorandom numbers drawn from a beta distribution.betaprime( len, alpha, beta[, options] )
: create an array containing pseudorandom numbers drawn from a beta prime distribution.chi( len, k[, options] )
: create an array containing pseudorandom numbers drawn from a chi distribution.chisquare( len, k[, options] )
: create an array containing pseudorandom numbers drawn from a chi-square distribution.cosine( len, mu, s[, options] )
: create an array containing pseudorandom numbers drawn from a raised cosine distribution.discreteUniform( len, a, b[, options] )
: create an array containing pseudorandom numbers drawn from a discrete uniform distribution.exponential( len, lambda[, options] )
: create an array containing pseudorandom numbers drawn from an exponential distribution.gamma( len, alpha, beta[, options] )
: create an array containing pseudorandom numbers drawn from a gamma distribution.geometric( len, p[, options] )
: create an array containing pseudorandom numbers drawn from a geometric distribution.invgamma( len, alpha, beta[, options] )
: create an array containing pseudorandom numbers drawn from an inverse gamma distribution.lognormal( len, mu, sigma[, options] )
: create an array containing pseudorandom numbers drawn from a lognormal distribution.minstdShuffle( len[, options] )
: create an array containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG) whose output is shuffled.minstd( len[, options] )
: create an array containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG).mt19937( len[, options] )
: create an array containing pseudorandom numbers generated using a 32-bit Mersenne Twister pseudorandom number generator.normal( len, mu, sigma[, options] )
: create an array containing pseudorandom numbers drawn from a normal distribution.poisson( len, lambda[, options] )
: create an array containing pseudorandom numbers drawn from a Poisson distribution.randu( len[, options] )
: create an array containing uniformly distributed pseudorandom numbers between0
and1
.rayleigh( len, sigma[, options] )
: create an array containing pseudorandom numbers drawn from a Rayleigh distribution.t( len, v[, options] )
: create an array containing pseudorandom numbers drawn from a Student's t-distribution.uniform( len, a, b[, options] )
: create an array containing pseudorandom numbers drawn from a continuous uniform distribution.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/random/array' );
console.log( objectKeys( ns ) );