Skip to end of metadata
Go to start of metadata

Availability

This routine is available starting with SIL Engine™ 2.5.

Syntax

random(number)

Description


Returns a random int value between 0 (inclusive) and the specified value (exclusive). This works for integers only.


Parameters

ParameterTypeRequiredDescription
numberNumberYesNumber to get the random int value for.

Return type

number

Example

number a = random(4);
print("a= " + a);

Prints: a= 3;

See also