Click or drag to resize
RandomNext Method (Int32, Int32)
Returns a nonnegative pseudorandom int in the specified range.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public override int Next(
	int minValue,
	int maxValue
)

Parameters

minValue
Type: SystemInt32
An int which specifies the lower bound of the random number returned.
maxValue
Type: SystemInt32
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

Type: Int32
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