Help for this page

Select Code to Download


  1. or download this
    my @groups;
    my %in_num_groups;
    ...
        my $item = shift @pile;
        push @{$groups[$in_num_groups{$item}++]}, $item;
    }
    
  2. or download this
    @pile = shuffle( (@card) x $n );