Returns a random sample from the distribution.
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Function GetRandomVariate ( _ random As Random _ ) As Double |
| C# |
|---|
public override double GetRandomVariate ( Random random ) |
| C++ |
|---|
public: virtual double GetRandomVariate ( Random^ random ) override |
Parameters
- random (System.Random)
- The Random derived random number generator used to generate the sample.
Return Value
A double-precision floating point number.
Remarks
This method uses the random number generator specified by random to generate a random sample from the distribution. The return values of successive calls to this method follow the distribution represented by this distribution.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | random is nullNothingnullptr. |