4D v14

RAND

Home

 
4D v14
RAND

RAND  


 

 

Command RANDRAND ([arithmetic_expression])

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');

 
PROPERTIES 

Product: 4D
Theme: Functions

 
ARTICLE USAGE

4D SQL Reference ( 4D v11 SQL Release 4 )
4D SQL Reference ( 4D v14)
4D SQL Reference ( 4D v12.1)
4D SQL Reference ( 4D v13.4)
4D SQL Reference ( 4D v14 R2)
4D SQL Reference ( 4D v14 R3)
4D SQL Reference ( 4D v14 R4)