rand() Function

Returns a random number between 0 and 1 based on an even probability distribution, which is seeded by the transaction time.

Syntax

rand()

Returns

Decimal

Notes

This function takes no parameters.

If multiple transactions take place at the same time, the following expression can be used to further randomize the result: todecimal(text(rand()\*(10^6),"000000"))

Examples

You can experiment with this function in the test box below.

Test Input

rand() returns 0.1429158

FEEDBACK