How can I create a random number between two numbers in Perl
my $random_num = int($minimum + rand($maximum - $minimum));
my $x = $minimum + int(rand($maximum - $minimum));
http://perldoc.perl.org/functions/rand.html
Note this range excludes $maximum
itself. Add 1 to make it inclusive.