Some routines to calculate probabilities in dice games.