Set seed for subsequent random() calls : setseed « Math Functions « PostgreSQL






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=#
           
       








Related examples in the same category