Random: NextRange

NextRange

Returns the next generated number in the sequence within a specified range.



 Public Function NextRange(
	  ByVal MinValue As Long,
	  ByVal MaxValue As Long ) As Long

Parameters

MinValue
[ByVal] Long. The lowerbound of the number to be generated.
MaxValue
[ByVal] Long. The upperbound of the number to be generated. Must be equal to or greater than minValue.

Return Values

Long -  A number generated within the specified range.

Remarks

The number generated will always be equal to or greater than minValue, and less than maxValue. The number will never equal maxValue.

See Also

Project CorLib Overview

Class Random Overview