Sage Modeling and Simulation Library

IRandomChannel..::..Next Method (Int32, Int32)

Produces the next pseudo random integer. Ranges from the argument minValue to the argument maxValue.

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

Syntax


int Next(
	int minValue,
	int maxValue
)

Parameters

minValue
Type: Int32
The minimum value served by the PRNG, inclusive.
maxValue
Type: Int32
The maximum value served by the PRNG, exclusive.

Return Value

The next pseudo random integer in the range [minValue,maxValue).