This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||
|
4D v19
RAND
|
|
||
The RAND function returns a random Real value between 0 and 1. The optional arithmetic_expression can be used to pass a seed value.
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');
Product: 4D
Theme: Functions
4D SQL Reference ( 4D v19)