Click or drag to resize

RandomNumberStreamFillT(IRandomNumberDistributionT, T, Int32, Int32) Method

Fills the given array with next random numbers from this stream.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void Fill<T>(
	IRandomNumberDistribution<T> distribution,
	T[] r,
	int startIndex,
	int n
)

Parameters

distribution  IRandomNumberDistributionT
Desired distribution of the random numbers.
r  T
Array to be filled.
startIndex  Int32
Index at which to begin placing the random numbers.
n  Int32
The number of random numbers produced.

Type Parameters

T
Random number type.
See Also