added mechanism for computing probabilities of rolling x based on n rolls