Description Usage Arguments Value Examples
This function calculates the probability of one dice rolling a higher digit than a second dice. This function works for any two dice, even of different lengths. The probability calculated is the first dice beating the second.
1 | prob_win(dice_a, dice_b)
|
dice_a |
The first dice, which we calculate the probability of winning
against |
dice_b |
The second dice, which we use to calculate the probability that
|
A single numeric decimal, representing probability of first die beating the second die.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.