Random: NextLong

NextLong

Returns the next generated number in the sequence.



 Public Function NextLong(
	  Optional ByVal MaxValue As Long = &H7FFFFFFF ) As Long

Parameters

MaxValue
[ByVal] Optional. Long. The value that the generated number must be less than.  

Default: &H7FFFFFFF

Return Values

Long -  The next generated number in the sequence.

Remarks

The generated number will be equal or greater than zero and less than maxValue. The number will never equal maxValue.

See Also

Project CorLib Overview

Class Random Overview