DOUBLE PRECISION.
Syntax
Return Types
DOUBLE PRECISION
Examples
The following code example demonstrates usingRANDOM without any other numeric functions. This generates a DOUBLE PRECISION value less than 1:
| random double |
|---|
| 0.6527596650249162 |
Rows: 1Execution time: 5.09ms
RANDOM with the FLOOR function. If a is the lesser value and b is the greater value,
compute FLOOR(RANDOM() * (b - a + 1)) + a.
The following code example generates a random integer between 50 and 100:
| ?column? double |
|---|
| 67 |
Rows: 1Execution time: 5.51ms