programming-examples/perl/SystemFunction/Random integers produced by 1 + int( rand( 6 ) ).pl
2019-11-15 12:59:38 +01:00

6 lines
132 B
Perl

print "\nRandom integers produced by 1 + int( rand( 6 ) ):\n";
for ( 1 .. 3 ) {
print " ", 1 + int( rand( 6 ) ), "\n";
}