You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl
|
|
$x=5 ;
|
|
$y=15;
|
|
|
|
# Formula to produce random numbers between 5 and 15 inclusive
|
|
# $random = int(rand($y - $x + 1)) + $x;
|
|
# $random = int(rand(15 - 5 + 1)) + 5
|
|
|
|
while(1){
|
|
print int(rand($y - $x + 1)) + $x , "\n";
|
|
sleep 1;
|
|
}
|