RAND

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next

version 11


RAND ([arithmetic_expression])

Description

The RAND function returns a random Float value between 0 and 1. The optional arithmetic_expression can be used to pass a seed value.

Example

This example inserts ID values generated by the RAND function:

   CREATE TABLE PEOPLE
   (ID INT32,   
   Name VARCHAR);
   
   INSERT INTO PEOPLE
   (ID, Name)
   VALUES(RAND, 'Francis');

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next