ContinuousDistributionGetRandomValues Method

Generates the given number of random variates.

Definition

Namespace: Meta.Numerics.Statistics.Distributions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public virtual IEnumerable<double> GetRandomValues(
	Random rng,
	int n
)

Parameters

rng  Random
A random number generator.
n  Int32
The number of variates to generate.

Return Value

IEnumerableDouble
An iterator that returns the requested number of variates distributed according to the distribution.

Exceptions

See Also