programming-examples/perl/SystemFunction/Using foreach loop to create a list of random number.pl
2019-11-15 12:59:38 +01:00

4 lines
96 B
Perl

print "Some lottery numbers to try:";
foreach (1 .. 6) {
print " " . int rand (50) + 1;
}