Monday, May 14, 2012

Perl - Function Rand

#!/usr/bin/perl
use strict;
use warnings;

my $cond = 50;

while($cond--){
   my $rand = int(rand(4));
   print "$rand\n";
}

0 comentários:

Post a Comment