Bar bets and Games::Dice::Advanced

Going through some old papers yesterday, I found a statistics problem I had to prove:

This bar game uses three standard six-sided dice. The player rolls all three dice at once. If he rolls three 4s, the bar pays him $3. If he rolls two 4s, the bar pays him $2. If he rolls a single 4, the bar pays him $1. If he rolls no 4s, he pays the bar $1.

Prove that the average loss per roll is about 7 cents for a large number of rolls.

I had done all the math and so on, but I wanted to write a little simulation. The Games::Dice::Advanced can handle all sorts of die things.

The "large number of rolls" tends to be pretty large. If you want to stick around a bar to roll dicce 4,000 times, you probably deserve to lose all of your money. Remember, you lose seven cents per roll.

With the little change, I figure I'd win about 75 cents per throw. Of course, if I do this with the London Perl Mongers, I'd win even more because of the exchange rate (they'd have to play with pounds).

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.