Skip to main content
Skip table of contents

random() Operation returning a Float Value

Syntax

set aFloat = random(minimum, maximum)

Semantics

Returns aFloat value between minimum and maximum.

Substitutables

minimum, maximum

Can be any variable or object attribute having the type Float. If maximum is less or equal minimum an error will occur. 

Examples

CODE
set rand = random(0.0, 1.0);

JavaScript errors detected

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

If this problem persists, please contact our support.