- Generates a random integer value between a specified range.
Parameters
- x: Inclusive minimum integer for the range
- y: Inclusive maximum integer for the range
Usage
- To generate a random integer:
- RAND x, y
- To retrieve generated random integer:
- %RAND%
- SETVAR thisRandom = %RAND%
On Error
- %RAND% returns -1