View Single Post
  #2 (permalink)  
Old 02-03-2008, 02:50 PM
derez derez is offline
Senior Member
 
Join Date: May 2007
Posts: 188
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default combination

Try this link
http://en.wikipedia.org/wiki/Mathematical_combination

as an example - to choose 3 out of 10 you have :

10! / (3! * (10-3)!) = 3628800/(6*5040) = 120

(calculated by SCalculator , since the only code you need is Factorial function, you can find it there.)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote