Click or drag to resize

ContinuousDistributionGetRandomValues Method

Generates the given number of random variates.

Namespace:  Meta.Numerics.Statistics.Distributions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public virtual IEnumerable<double> GetRandomValues(
	Random rng,
	int n
)

Parameters

rng
Type: SystemRandom
A random number generator.
n
Type: SystemInt32
The number of variates to generate.

Return Value

Type: IEnumerableDouble
An iterator that returns the requested number of variates distributed according to the distribution.
Exceptions
ExceptionCondition
ArgumentNullExceptionrng is .
ArgumentOutOfRangeExceptionn is negative.
See Also