Random
Returns a random number.
Variants
Random()
This function returns a random number between 0 and 1.
Returns
Numeric
Examples
Random()
returns 0.92 or 0.12 or 0.4.
Random(Numeric from, Numeric to)
Returns a random number between "from" and "to," where "to" is not included.
Parameters
- from
- The numeric value to start from.
- to
- The numeric value to end before.
Returns
Numeric
Examples
Case(Floor(Random(0,6)), 0, "red", 1, "orange", 2, "yellow", 3, "green", 4, "blue", 5, "indigo")
returns a random color.