From 153fe0fc627f627e0c9889276dc578baf97f909d Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Wed, 20 Nov 2024 13:13:42 -0800 Subject: [PATCH] Clarify wording per Github comments --- pod/perlfunc.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index e9e9ebb32dc2..b02f0760eec8 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -6547,9 +6547,9 @@ Returns a random fractional number greater than or equal to C<0> and I than the value of EXPR. (EXPR should be positive.) If EXPR is omitted, the value C<1> is used. - my $num1 = rand(); # Random float between 0 and 1 - my $num2 = rand(10); # Random float between 0 and 10 - my $num3 = int(rand(10)); # Random integer between 0 and 10 + my $num1 = rand(); # Random float at least 0 and below 1 + my $num2 = rand(7); # Random float at least 0 and below 7 + my $num3 = int(rand(10)); # Random integer at least 0 and below 10 B