Skip to content

Commit

Permalink
Clarify wording per Github comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Nov 20, 2024
1 parent 200b3dd commit 153fe0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -6547,9 +6547,9 @@ Returns a random fractional number greater than or equal to C<0> and I<less>
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<Notes:>

Expand Down

0 comments on commit 153fe0f

Please sign in to comment.