Free cookie consent management tool by TermsFeed rand() Function
rand() Function

Function

rand( count )

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

Parameters

Keyword Type Description

count

Integer

The number of random numbers to be returned.

Returns

Decimal

Usage considerations

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"))

The maximum value for count is 1,000,000.

Examples

rand() returns 0.1429158

rand(2) returns {0.372094, 0.829343}

Open in Github Built: Fri, Apr 19, 2024 (06:07:39 PM)

rand() Function

FEEDBACK