DBMS_RANDOM.VALUE_UDF (DOUBLE, DOUBLE)

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Definition

This user-defined function (UDF) is to replicate the functionality of the Oracle DBMS_RANDOM.VALUE function.

DBMS_RANDOM.VALUE_UDF(low DOUBLE, high DOUBLE)

Parameters

low DOUBLE

The initial limit to be considered.

high DOUBLE

The delimiting limit that coordinates with the first parameter.

Returns

Returns a double number with a random number between the limits specified.

Usage example

Input:

SELECT DBMS_RANDOM.VALUE_UDF(1.1, 2.2);

Output:

1.637802374

Last updated