ContinuousDistribution.GetRandomValue Method
Click or drag to resize

ContinuousDistributionGetRandomValue Method

Generates a random variate.

Namespace:  Meta.Numerics.Statistics.Distributions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntax
public virtual double GetRandomValue(
	Random rng
)

Parameters

rng
Type: SystemRandom
A random number generator.

Return Value

Type: Double
A value distributed according to the distribution.
Exceptions
ExceptionCondition
ArgumentNullExceptionrng is .
Remarks

Note that the random number generator rng will be advanced by this method. The next call to its generator methods will not give the same value as it would had it not been passed to this method.

See Also