ContinuousDistributionGetRandomValue Method |
Generates a random variate.
Namespace:
Meta.Numerics.Statistics.Distributions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntaxpublic virtual double GetRandomValue(
Random rng
)
Public Overridable Function GetRandomValue (
rng As Random
) As Double
public:
virtual double GetRandomValue(
Random^ rng
)
abstract GetRandomValue :
rng : Random -> float
override GetRandomValue :
rng : Random -> float
Parameters
- rng
- Type: SystemRandom
A random number generator.
Return Value
Type:
DoubleA value distributed according to the distribution.
Exceptions
RemarksNote 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