ContinuousDistributionGetRandomValues Method |
Generates the given number of random variates.
Namespace:
Meta.Numerics.Statistics.Distributions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public virtual IEnumerable<double> GetRandomValues(
Random rng,
int n
)
Public Overridable Function GetRandomValues (
rng As Random,
n As Integer
) As IEnumerable(Of Double)
public:
virtual IEnumerable<double>^ GetRandomValues(
Random^ rng,
int n
)
abstract GetRandomValues :
rng : Random *
n : int -> IEnumerable<float>
override GetRandomValues :
rng : Random *
n : int -> IEnumerable<float>
Parameters
- rng
- Type: SystemRandom
A random number generator. - n
- Type: SystemInt32
The number of variates to generate.
Return Value
Type:
IEnumerableDoubleAn iterator that returns the requested number
of variates distributed according to the distribution.
Exceptions See Also