@@ -1815,6 +1815,28 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
18151815 </para></entry>
18161816 </row>
18171817
1818+ <row>
1819+ <entry role="func_table_entry"><para role="func_signature">
1820+ <indexterm>
1821+ <primary>random_normal</primary>
1822+ </indexterm>
1823+
1824+ <function>random_normal</function> (
1825+ <optional> <parameter>mean</parameter> <type>double precision</type>
1826+ <optional>, <parameter>stddev</parameter> <type>double precision</type> </optional></optional> )
1827+ <returnvalue>double precision</returnvalue>
1828+ </para>
1829+ <para>
1830+ Returns a random value from the normal distribution with the given
1831+ parameters; <parameter>mean</parameter> defaults to 0.0
1832+ and <parameter>stddev</parameter> defaults to 1.0
1833+ </para>
1834+ <para>
1835+ <literal>random_normal(0.0, 1.0)</literal>
1836+ <returnvalue>0.051285419</returnvalue>
1837+ </para></entry>
1838+ </row>
1839+
18181840 <row>
18191841 <entry role="func_table_entry"><para role="func_signature">
18201842 <indexterm>
@@ -1824,7 +1846,8 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
18241846 <returnvalue>void</returnvalue>
18251847 </para>
18261848 <para>
1827- Sets the seed for subsequent <literal>random()</literal> calls;
1849+ Sets the seed for subsequent <literal>random()</literal> and
1850+ <literal>random_normal()</literal> calls;
18281851 argument must be between -1.0 and 1.0, inclusive
18291852 </para>
18301853 <para>
@@ -1848,6 +1871,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
18481871 Without any prior <function>setseed()</function> call in the same
18491872 session, the first <function>random()</function> call obtains a seed
18501873 from a platform-dependent source of random bits.
1874+ These remarks hold equally for <function>random_normal()</function>.
18511875 </para>
18521876
18531877 <para>
0 commit comments