Pseudorandom Generators

Continuous Distributions

Uniform generates pseudorandom numbers with uniform distribution.
Fortran:
call vsrnguniform (method, stream, n, r, a, b)
call vdrnguniform (method, stream, n, r, a, b)
C:
vsRngUniform (method, stream, n, r, a, b);
vdRngUniform (method, stream, n, r, a, b);

Gaussian generates normally distributed pseudorandom numbers.
Fortran:
call vsrnggaussian (method, stream, n, r, a, sigma)
call vdrnggaussian (method, stream, n, r, a, sigma)
C:
vsRngGaussian (method, stream, n, r, a, sigma);
vdRngGaussian (method, stream, n, r, a, sigma);

Exponential generates exponentially distributed pseudorandom numbers.
Fortran:
call vsrngexponential (method, stream, n, r, a, beta)
call vdrngexponential (method, stream, n, r, a, beta)
C:
vsRngExponential (method, stream, n, r, a, beta);
vdRngExponential (method, stream, n, r, a, beta);

Laplace generates pseudorandom numbers with Laplace distribution.
Fortran:
call vsrnglaplace (method, stream, n, r, a, beta)
call vdrnglaplace (method, stream, n, r, a, beta)
C:
vsRngLaplace (method, stream, n, r, a, beta);
vdRngLaplace (method, stream, n, r, a, beta);

Weibull generates Weibull distributed pseudorandom numbers.
Fortran:
call vsrngweibull (method, stream, n, r, alpha, a, beta)
call vdrngweibull (method, stream, n, r, alpha, a, beta)
C:
vsRngWeibull (method, stream, n, r, alpha, a, beta);
vdRngWeibull (method, stream, n, r, alpha, a, beta);

Cauchy generates Cauchy distributed pseudorandom numbers.
Fortran:
call vsrngcauchy (method, stream, n, r, a, beta)
call vdrngcauchy (method, stream, n, r, a, beta)
C:
vsRngCauchy (method, stream, n, r, a, beta);
vdRngCauchy (method, stream, n, r, a, beta);

Rayleigh generates Rayleigh distributed pseudorandom numbers.
Fortran:
call vsrngrayleigh (method, stream, n, r, a, beta)
call vdrngrayleigh (method, stream, n, r, a, beta)
C:
vsRngRayleigh (method, stream, n, r, a, beta);
vdRngRayleigh (method, stream, n, r, a, beta);

Lognormal generates lognormally distributed pseudorandom numbers.
Fortran:
call vsrnglognormal (method, stream, n, r, a, sigma, b, beta)
call vdrnglognormal (method, stream, n, r, a, sigma, b, beta)
C:
vsRngLognormal (method, stream, n, r, a, sigma, b, beta);
vdRngLognormal (method, stream, n, r, a, sigma, b, beta);

Gumbel generates Gumbel distributed pseudorandom numbers.
Fortran:
call vsrnggumbel (method, stream, n, r, a, beta)
call vdrnggumbel (method, stream, n, r, a, beta)
C:
vsRngGumbel (method, stream, n, r, a, beta);
vdRngGumbel (method, stream, n, r, a, beta);

Discrete Distributions

Uniform generates pseudorandom numbers uniformly distributed over the interval [a,b).
Fortran:
call virnguniform (method, stream, n, r, a, b)
C:
viRngUniform (method, stream, n, r, a, b);

UniformBits generates integer random values with uniform bit distribution.
Fortran:
call virnguniformbits (method, stream, n, r)
C:
viRngUniformBits (method, stream, n, r);

Bernoulli generates Bernoulli distributed pseudorandom values.
Fortran:
call virngbernoulli (method, stream, n, r, p)
C:
viRngBernoulli (method, stream, n, r, p);

Geometric generates geometrically distributed pseudorandom values.
Fortran:
call virnggeometric (method, stream, n, r, p)
C:
viRngGeometric (method, stream, n, r, p);

Binomial generates binomially distributed pseudorandom numbers.
Fortran:
call virngbinomial (method, stream, n, r, ntrial, p)
C:
viRngBinomial (method, stream, n, r, ntrial, p);

Hypergeometric generates hypergeometrically distributed pseudorandom values.
Fortran:
call virnghypergeometric (method, stream, n, r, l, s, m)
C:
viRngHypergeometric (method, stream, n, r, l, s, m);

Poisson generates Poisson distributed pseudorandom values.
Fortran:
call virngpoisson (method, stream, n, r, lambda)
C:
viRngPoisson (method, stream, n, r, lambda);

NegBinomial generates pseudorandom numbers with negative binomial distribution.
Fortran:
call virngnegbinomial (method, stream, n, r, a, p)
C:
viRngNegBinomial (method, stream, n, r, a, p);

* Legal Information © 1999, 2002-2004, Intel Corporation