Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Wordfeud racks

by RichardK (Parson)
on Jul 30, 2013 at 15:31 UTC ( #1047058=note: print w/replies, xml ) Need Help??

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 (Bishop) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047058]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-06-20 05:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.