Hmm, my bad. I might just have been using invalid numbers or something. I tried again with a real example and it does give a probability now. Sadly, the answer is wrong :p
I used an example with 60 cards left, 7 cards being drawn, 4 outs in deck and 1 out needed:
/odds 60 7 4 1
it comes out as 0.33628 when it should be 0.399499623
The problem seems to be with $3 and $4. If I keep those at 1 then the script works correctly. The equation is based on C(outs,required)*C(total-outs,drawn-required)/C(total,drawn)
Last edited by Sakana; 02/11/14 01:59 PM.