Lucee Function Reference

rand()

Generates a pseudo-random number in the range 0 - 1.

Example

rand([string algorithm]):number

Category

number

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
algorithm string  No The algorithm to use to generate the random number.