Firebird Documentation IndexFirebird 2.5 Language Ref. UpdateInternal functions → RAND()
Firebird Home Firebird Home Prev: POWER()Firebird Documentation IndexUp: Internal functionsNext: RDB$GET_CONTEXT()

RAND()

Available in: DSQL, PSQL

Added in: 2.1

Description: Returns a random number between 0 and 1.

Result type: DOUBLE PRECISION

Syntax: 

RAND ()

Important

If the external function RAND is declared in your database, it will override the internal function. To make the internal function available, DROP or ALTER the external function (UDF).

Prev: POWER()Firebird Documentation IndexUp: Internal functionsNext: RDB$GET_CONTEXT()
Firebird Documentation IndexFirebird 2.5 Language Ref. UpdateInternal functions → RAND()