In PostgreSQL, the setseed()
function sets the seed for subsequent random()
and random_normal()
calls (value between -1.0 and 1.0, inclusive).
The random()
function generates a pseudo-random number using a simple linear congruential algorithm. The random_normal()
function generates a normally-distributed random number.
If setseed()
is called, the results of subsequent random()
and random_normal()
calls in the current session are repeatable by re-issuing setseed()
with the same argument.