Returns a nonnegative pseudorandom int in the specified range.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public override int Next(
	int minValue,
	int maxValue
)
Visual Basic (Declaration)
Public Overrides Function Next ( _
	minValue As Integer, _
	maxValue As Integer _
) As Integer
Visual C++
public:
virtual int Next(
	int minValue, 
	int maxValue
) override

Parameters

minValue
Type: System..::.Int32
An int which specifies the lower bound of the random number returned.
maxValue
Type: System..::.Int32
An int which specifies the upper bound of the random number to be generated. maxValue must be greater than or equal to zero.

Return Value

An int greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If minValue equals maxValue, minValue is returned.

See Also