Help for this page

Select Code to Download


  1. or download this
    my @num = map { int( 1 + rand 10 ) } (1..3);
    
  2. or download this
    my %num;
    while(keys %num < 3) {
    ...
       $num{$x}++ unless exists $num{$x};
    }
    my @num = keys %num;