Skip to main content
Skip table of contents

random() Operation returning an Integer Value

Syntax
NONE
set anInteger = random(minimum, maximum)
Semanticsrandom() returns anInteger value between minimum and maximum.
Substitutablesminimum, maximumCan be any variable or object attribute having the type Integer. If maximum is less or equal minimum an error will occur. 
Examples
NONE
set rand = random(0, 10);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.