Skip to content

Commit 26a90c6

Browse files
committed
Fix imprecise documentation of random(): it never returns 1.0.
This was changed in 8.2 but the documentation was not corrected. Per gripe from Sam Mason.
1 parent 785cfee commit 26a90c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.486 2009/08/10 18:29:26 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.487 2009/08/16 19:55:21 tgl Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -821,7 +821,7 @@
821821
<row>
822822
<entry><literal><function>random</function>()</literal></entry>
823823
<entry><type>dp</type></entry>
824-
<entry>random value between 0.0 and 1.0, inclusive</entry>
824+
<entry>random value in the range 0.0 &lt;= x &lt; 1.0</entry>
825825
<entry><literal>random()</literal></entry>
826826
<entry></entry>
827827
</row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy