Sage Modeling and Simulation Library

RandomServer..::..GetRandomChannel Method (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 seed,
	int bufferSize
)

Parameters

seed
Type: UInt64
The seed value for 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.