Sage Modeling and Simulation Library

RandomServer..::..GetRandomChannel Method (array<UInt64>[]()[][], Int32)

Gets a RandomChannel with a specified seed and buffer size.

Namespace:  Highpoint.Sage.Randoms
Assembly:  Sage4 (in Sage4.dll)

Syntax


public IRandomChannel GetRandomChannel(
	ulong[] initArray,
	int bufferSize
)

Parameters

initArray
Type: array<UInt64>[]()[][]
An array of unsigned longs that will be used to initialize the PRNG behind this channel.
bufferSize
Type: Int32
The buffer size for this channel. Non-zero enables double-buffering.

Return Value

The random channel from which random numbers may be obtained in a repeatable sequence.