@@ -1815,6 +1815,28 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
1815
1815
</para></entry>
1816
1816
</row>
1817
1817
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
+
1818
1840
<row>
1819
1841
<entry role="func_table_entry"><para role="func_signature">
1820
1842
<indexterm>
@@ -1824,7 +1846,8 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
1824
1846
<returnvalue>void</returnvalue>
1825
1847
</para>
1826
1848
<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;
1828
1851
argument must be between -1.0 and 1.0, inclusive
1829
1852
</para>
1830
1853
<para>
@@ -1848,6 +1871,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
1848
1871
Without any prior <function>setseed()</function> call in the same
1849
1872
session, the first <function>random()</function> call obtains a seed
1850
1873
from a platform-dependent source of random bits.
1874
+ These remarks hold equally for <function>random_normal()</function>.
1851
1875
</para>
1852
1876
1853
1877
<para>
0 commit comments