Returns a random integer.
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. |
RandInt returns a random integer in the range (iMin, iMax), inclusive.
For more information about how random number generation works, see RandSeed function.
INTEGER iScore iScore = RandInt(0, 100) Print("Your score is", iScore)