IRandom Stream Source<TRandom>.Next Streams 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#
An array of count RNG instances.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
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
| Argument | count is negative. |