rand

This function generates a random integer, which is greater than or equal to zero, and less than the cap value.

This function returns number. Calling this function without storing its return value in a variable is an error.

Arguments

cap

The generated number will not be equal to or greater than this value.

Example

global.number[0] = rand(7)