Geoff runs us through the Hypergeometric and Binomial functions in a spreadsheet application like Microsoft Excel. Don't be intimidated by their names; they're actually pretty easy to use, and invaluable for game designers.
You can find Geoff's GameTek newsletter on this subject here.