Returns a random sample from the distribution.
Namespace: Extreme.Statistics.DistributionsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public override double Sample(
Random random
)
Public Overrides Function Sample (
random As Random
) As Double
public:
virtual double Sample(
Random^ random
) override
abstract Sample :
random : Random -> float
override Sample :
random : Random -> float
Parameters
- random
- Type: SystemRandom
The Random
derived random number generator used to generate
the sample.
Return Value
Type:
DoubleA double-precision floating-point number.
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.
Numerical Libraries
Supported in: 6.0, 5.x, 4.x
Reference