Action
Returns a random integer.
Syntax
iRand = RandInt(iMin, iMax)
Variable
|
Description
|
iRand
|
The returned random number. INTEGER.
|
iMin |
The minimum random value to return. INTEGER.
|
iMax |
The maximum random value to return. INTEGER.
|
Notes
RandInt returns a random integer in the range (iMin, iMax), inclusive.
For more information about how random number generation works,
see RandSeed function.
Example
INTEGER iScore
iScore = RandInt(0, 100)
Print("Your score is", iScore)