Random Extensions.Next Double Method
Returns a sample from the specified distribution.
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A Double value that is a sample from distribution.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double NextDouble(
this Random random,
ContinuousDistribution distribution
)
Parameters
- random Random
- A random number generator used to generate samples from the distribution.
- distribution ContinuousDistribution
- A ContinuousDistribution object.
Return Value
DoubleA Double value that is a sample from distribution.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
ArgumentNullException | distribution is null. |