IRandomStreamSource<TRandom>.NextStreams Method

Returns an array of RNGs for the next N child streams and advances the index.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
TRandom[] NextStreams(
	int count
)

Parameters

count  Int32
The number of streams to generate.

Return Value

TRandom[]
An array of count RNG instances.

Remarks

This method is equivalent to calling NextStream()count times, but may be more efficient due to internal optimizations.

The NextIndex is incremented by count.

Exceptions

ArgumentOutOfRangeExceptioncount is negative.

See Also