Mega Code Archive

 
Categories / PostgreSQL / Math Functions
 

Set seed for subsequent random() calls

postgres=# -- Set seed for subsequent random() calls postgres=# select setseed(0.54823);   setseed ------------  1177314959 (1 row) postgres=# select random();       random -------------------  0.985542759292546 (1 row) postgres=# postgres=#