in reply to random number with range
my $num = $min + rand($max - $min); [download]
my $int = $min + int(rand($max - $min)); [download]