Hacker News new | ask | show | jobs
by hugh 6494 days ago
1. Rerolling the dice is still a faster (and thus better) way of solving this problem.

Ah, but it's not guaranteed to terminate.

3 comments

Frankly, if I discovered that a pair of die were summing to seven, it would be more fun to roll over and over than actually playing a game.
Statistically, as the number of times the dice have been rolled approaches infinity, a near-infinite string of 7s becomes exceedingly likely.

However, a short time before that, a meteor comes in through your window and knocks you unconscious... and oh yeah, the sun explodes. Damn the laws of probability!

From a game designer's perspective, termination with probability 1 and certain termination are considered to be identical.