ParallelRandom.Fill Method

Definition

Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Fill(IList<Double>, Int32, Int32) Fills a Double array with random samples from the specified distribution.
Fill(IList<Int32>, Int32, Int32) Fills an Int32 array with random samples from the specified distribution.

Fill(IList<Double>, Int32, Int32)

Fills a Double array with random samples from the specified distribution.
C#
public void Fill(
	IList<double> samples,
	int startIndex,
	int length
)

Parameters

samples  IList<Double>
A Double array.
startIndex  Int32
The zero-based index at which to begin filling the samples array.
length  Int32
The number of samples to provide.

Exceptions

ArgumentNullExceptionsamples is null.
ArgumentOutOfRangeExceptionstartIndex is less than zero.

-or-

length is less than zero.

ArgumentExceptionlength is greater than the number of elements from startIndex to the end of samples.

Fill(IList<Int32>, Int32, Int32)

Fills an Int32 array with random samples from the specified distribution.
C#
public void Fill(
	IList<int> samples,
	int startIndex,
	int length
)

Parameters

samples  IList<Int32>
A Int32 array.
startIndex  Int32
The zero-based index at which to begin filling the samples array.
length  Int32
The number of samples to provide.

Exceptions

ArgumentNullExceptionsamples is null.
ArgumentOutOfRangeExceptionstartIndex is less than zero.

-or-

length is less than zero.

ArgumentExceptionlength is greater than the number of elements from startIndex to the end of samples.

See Also