Chapter 4: SQL Language Elements
4.9.2.64 RAND function (ODBC compatible)
Syntax
RAND ( [ expression ] )
Description
The scalar function RAND returns a randomly-generated number, using expression as an optional seed value.
Example
SELECT RAND(3) 'Random number using 3 as seed value'
FROM SYSTPE.SYSCALCTABLE;
Notes
- expression must evaluate to an exact numeric data type.