RND keyword

Returns a random integer between and including a min and max.

Syntax

RND(min, max)

Parameters

  • min: minimal number (required)
  • max: maximal number (required)

Example

number = RND(1, 10)
number = RND(-500, 500)
MOVE img, (RND(100, 300), 0) 'Sets a random X position

Go back to list of Keywords.