Returns a random integer.

Syntax

Smartsite SXML CopyCode image Copy Code
integer math.random()
integer math.random(integer max)
integer math.random(integer min, integer max)

Parameters

Name Data Type Description
max Integer Maximum value.
min Integer Minimim value.

Return Value

Data Type Description
Integer Random integer value.

Expand image Examples

SXML