DiscreteDistributionGetRandomValue Method |
Produces a random integer drawn from the distribution.
Namespace:
Meta.Numerics.Statistics.Distributions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public virtual int GetRandomValue(
Random rng
)
Public Overridable Function GetRandomValue (
rng As Random
) As Integer
public:
virtual int GetRandomValue(
Random^ rng
)
abstract GetRandomValue :
rng : Random -> int
override GetRandomValue :
rng : Random -> int
Parameters
- rng
- Type: SystemRandom
A random number generator.
Return Value
Type:
Int32A random integer drawn from the distribution.
See Also