in reply to Re^3: Wordfeud racks (Math::Combinatorics)
in thread Wordfeud racks
Replace sample values with actual values for Wordfeud to watch the results print at a very slowly pace down your screen. /Luse Math::Combinatorics qw(combine); my @data = qw(A B C); my @frequency = qw(3 2 1); my $racklength = 2; my $combinat = Math::Combinatorics->new(count => $racklength, data => [@data], frequency => [@frequency], ); while(my @combo = $combinat->next_multiset){ print join(' ', @combo)."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Wordfeud racks
by Anonymous Monk on Jul 30, 2013 at 14:24 UTC |