Click or drag to resize

IntRandomBernoulliDistributionFill Method

Uses the given random number stream to fill the given array of integers with random values.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
public void Fill(
	RandomNumberStream stream,
	int[] v,
	int start,
	int n
)

Parameters

stream
Type: CenterSpace.NMath.CoreRandomNumberStream
Random number stream.
v
Type: SystemInt32
Vector to fill.
start
Type: SystemInt32
Index at which to start placing random deviates.
n
Type: SystemInt32
Number of random deviates to produce.

Implements

IRandomNumberDistributionTFill(RandomNumberStream, T, Int32, Int32)
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if n + start exceeds the length of the given array.
Remarks
v must be initialized before calling this method.
See Also