Show Menu
ARGOMENTI×

random

Generates a random number between 0 and 1.

Category

Maths

Function syntax

random(<parameters>)

Signature and returned type

random()
Returns a decimal.

Example

#{MarltonReservation.statistics.successRatio, defaultValue : random() * 100}
Explanation: if the success ratio has no value/is null, the default value will be applied and will be a random figure between 0 and 1 * 100 (meaning 0 to 100).