DBMS_RANDOM

Example

Generate a random number between 0 and 1:

SELECT DBMS_RANDOM.VALUE(0,1);

Generate a random integer ranging from 0 to 100. The random integer is greater than or equal to the specified value of low and less than the specified value of high.

SELECT TRUNC(DBMS_RANDOM.VALUE(0,100));