Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Given two dice, calculate the odds that the first will win, tie or lose
ResourceFunction["CompareDice"][a, b] calculate the odds that die a will {win, tie, lose} to die b. |
A 4-sided die has a 1/4 chance of rolling higher than a 6-sided die:
| In[1]:= |
| Out[1]= |
In these intransitive dice, a>b>c>a:
| In[2]:= |
| Out[3]= |
In Efron's dice, a>b>c>d>a:
| In[4]:= |
| Out[5]= |
With Miwin's dice, a>b>c>a:
| In[6]:= |
| Out[7]= |
A new set of intransitive dice:
| In[8]:= |
| Out[9]= |
Any two of Eric Harshbarger's "Go First Dice" have equal odds of winning:
| In[10]:= | ![]() |
| Out[11]= |
In this set of fooling dice, a>b>c>d>e>a:
| In[12]:= | ![]() |
| Out[13]= |
However, if pairs of the dice are rolled, a<b<c<d<e<a:
| In[14]:= | ![]() |
| Out[14]= |
This work is licensed under a Creative Commons Attribution 4.0 International License