random
random()
random(recalculate
)
The RANDOM function may be invoked with no arguments or with the following argument:
recalculate
The optional recalculate parameter may be true or false, and indicates if the random value should be recalculated multiple times within the evaluation of a single row for every offset() value (true), or if the random value is only drawn a single time per row (false).
The default value if not specified is false.
The random function returns a pseudo random number greater than or equal to 0.0 and less than 1.0. The random value is drawn each time the expression is evaluated.
The value is drawn from a pseudo random stream of numbers. The stream is initialized with a very likely to be distinct from any other invocation, so the random number stream will very likely be different for each invocation of the Patchworks program.
Formula |
Description |
Result |
---|---|---|
random() |
Return a random value. The number will be different for each invocation. |