http://www.perlmonks.org?node_id=1047058


in reply to Wordfeud racks

How many tiles are in the bag?

for example, if it's only 100 then you're going to have to create 80,678,106,432,000 unique combinations - which might take a while :)

Replies are listed 'Best First'.
Re^2: Wordfeud racks
by choroba (Cardinal) on Jul 30, 2013 at 17:02 UTC

      Sorry, I meant permutations, so there a N!/(N-K)! ways to select K tiles from a bag of N.

      Or for 7 of 100 tiles = 100*99*98*97*96*95*94 permutations.

      I think it will be easier to calculate the probabilities of the different combinations rather than count them, but it's still going to be a fair amount of work.