Apache Presto - Math Function random(x)


Query

presto:default> select random(6) as random_value; 

Result

random_value 
-------------- 
    2 

A random number is generated as a result.

apache_presto_sql_functions.htm
Advertisements