summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2002-07-18 23:34:36 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-18 21:32:52 +0000
commit351f32542342b92f7303dec0a812c5301714120f (patch)
tree3ba1bee1aef3661b3b77a15c3c908a2ffb3002e5 /pod
parentff019190b10d1548efb9adf56145a5feb1d2cfef (diff)
downloadperl-351f32542342b92f7303dec0a812c5301714120f.tar.gz
[DOCPATCH] Re: [Patch] rand() functionality
Message-ID: <20020718213435.GN301@Bagpuss.unfortu.net> p4raw-id: //depot/perl@17634
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 56201d4971..b7fcd52dc8 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -3741,8 +3741,10 @@ If EXPR is omitted, uses C<$_>.
Returns a random fractional number greater than or equal to C<0> and less
than the value of EXPR. (EXPR should be positive.) If EXPR is
-omitted, or a C<0>, the value C<1> is used. Automatically calls C<srand>
-unless C<srand> has already been called. See also C<srand>.
+omitted, the value C<1> is used. Currently EXPR with the value C<0> is
+also special-cased as C<1> - this has not been documented before perl 5.8.0
+and is subject to change in future versions of perl. Automatically calls
+C<srand> unless C<srand> has already been called. See also C<srand>.
Apply C<int()> to the value returned by C<rand()> if you want random
integers instead of random fractional numbers. For example,