View Single Post
  #3  
Old December 24th, 2003, 09:26 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

I forget if you want to use permutations or combinations here... it will be one over one of the following formulae:

n is the total number of items, r is the number of those items you want.

Combination (order does not matter):
n! / [ ( n - r )! * r! ]

Permutation (order matters):
n! / (n - r)!

So for probability, you have either

[ ( n - r )! * r! ] / n!

or

(n - r)! / n!

Depending on which is the one you want.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote