Page 1 of 1

Keyword: RAND - Random integer

Posted: Mon Mar 22, 2021 8:40 pm
by YiMeng
Description
  • 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