in reply to Show different text based on random number
Hi htmanning,
say
substr+lc crypt(qw $i3 SI$),4,5
Even more generally, here's a subroutine that gives back a random integer in the range X to Y (inclusive):
sub random_number_from_X_to_Y { my ($x, $y) = @_; my $random = $x + int(rand($y - $x + 1)); return $random; }
In Section
Seekers of Perl Wisdom