"be consistent" | |
PerlMonks |
Re^3: Math helpby themage (Friar) |
on Nov 27, 2006 at 11:30 UTC ( [id://586235]=note: print w/replies, xml ) | Need Help?? |
hi,
If you don't care if the balls from the first pair are equal or not, you just want that pair1/bag1=pair2/bag1 and pair1/bag2=pair2/bag2, your answer is correct. The odds are 0.0001 (0.01%). But if you want that pair1/bag1=pair1/bag2 and pair1/bag1=pair2/bag1 and pair1/bag2=pair2/bag2, then you will need to multiply another time, and the correct answer will be 0.000001 (0.0001%).
TheMage http://themage.bliker.com
In Section
Seekers of Perl Wisdom
|
|