programming-examples/perl/SystemFunction/Random integers produced by 1 + int( rand( 6 ) ).pl

6 lines
132 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print "\nRandom integers produced by 1 + int( rand( 6 ) ):\n";
for ( 1 .. 3 ) {
print " ", 1 + int( rand( 6 ) ), "\n";
}