Click or drag to resize

RandomNumberGeneratorDefaultUniform Method (Int32, Double, Int32)

Draws a sample from a Uniform distribution defined on the interval having 0 and 1 as bounds, and returns it in a destination array.

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

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.
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.
See Also