Tom Lane wrote: > Dennis Bjorklund <[EMAIL PROTECTED]> writes: > > > > <entry><literal><function>setseed</function>(<type>dp</type>)</literal></entry> > > <entry><type>int</type></entry> > > - <entry>set seed for subsequent <literal>random()</literal> > > calls</entry> > > + <entry>set seed for subsequent <literal>random()</literal> calls > > (value between -1.0 and 1.0)</entry> > > Looking at the code, it would appear that the intended range is 0 to 1.
Docs updated. -- Bruce Momjian [EMAIL PROTECTED] EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/func.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v retrieving revision 1.332 diff -c -c -r1.332 func.sgml *** doc/src/sgml/func.sgml 22 Aug 2006 00:49:19 -0000 1.332 --- doc/src/sgml/func.sgml 4 Sep 2006 21:45:15 -0000 *************** *** 795,801 **** <row> <entry><literal><function>setseed</function>(<type>dp</type>)</literal></entry> <entry><type>int</type></entry> ! <entry>set seed for subsequent <literal>random()</literal> calls</entry> <entry><literal>setseed(0.54823)</literal></entry> <entry><literal>1177314959</literal></entry> </row> --- 795,801 ---- <row> <entry><literal><function>setseed</function>(<type>dp</type>)</literal></entry> <entry><type>int</type></entry> ! <entry>set seed for subsequent <literal>random()</literal> calls (value between 0 and 1.0)</entry> <entry><literal>setseed(0.54823)</literal></entry> <entry><literal>1177314959</literal></entry> </row>
---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly