Click or drag to resize

RandomNumberGeneratorUniform Method (Int32, Double, Int32, Double, Double)

Draws a sample from a Uniform distribution defined on the specified interval and returns it in a destination array.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public void Uniform(
	int sampleSize,
	double[] destinationArray,
	int destinationIndex,
	double lowerBound,
	double upperBound
)

Parameters

sampleSize
Type: SystemInt32
The sample size.
destinationArray
Type: SystemDouble
The destination array that receives the sampled data.
destinationIndex
Type: SystemInt32
The index in destinationArray at which storing begins.
lowerBound
Type: SystemDouble
The interval lower bound.
upperBound
Type: SystemDouble
The interval upper bound.
Exceptions
ExceptionCondition
ArgumentNullExceptiondestinationArray is null.
ArgumentOutOfRangeExceptionsampleSize is not positive.
-or-
destinationIndex is negative.
ArgumentException Parameter sampleSize must be less than or equal to the difference between the length of parameter destinationArray and destinationIndex.
-or-
upperBound is not greater than lowerBound.
See Also