n-sided Dice
There are five Platonic solids which are used to make physical dice. If you need a D6, use a cube. If you need a D4, use a tetrahedron. And so on. But what if you want a D33? Or a D71? Or any other die?

How do you simulate any n-sided die using just D6s?
This page will show you a procedure to simulate any statistically fair Dn you want using just D6s.
Dn for n≤6
First of all, we will need some simple notation to keep things consistent. We will use a colon to denote "with the following values" and then we can define the Dn for n≤6 as follows,
For example, to simulate a D3, we roll a D6 and interpret the ordered face values {1, 2, 3, 4, 5, 6} as {1, 1, 2, 2, 3, 3}.
Dn for n>6
The basic method for n>6 is to use factorisation to express the number n in terms of numbers less than 6, and then use combinations of the dice defined above.
For example, let's simulate a D12. The number 12 can be expressed as 3 x 4, so we can use D3s and D4s to express a D12. Using our notation,
which is identical to
In other words, we first roll a D4 and then consult what to do next. So, if we get a 2 on the D4, then we roll a D3 and add +3 to it, which will translate to 4, 5, or 6 on the D12.
This gives us a statistically fair distribution of values. Note that just adding the values of dice together is not statistically fair. 
So, the first thing to do is express n>6 in terms of numbers less than 6. In order to do this, we need to determine whether n is a prime number or not.
If n is composite (i.e. not a prime number), then we find two factors p>1 and q>1 such that pq=n. Then,
For example, for n=24, we could choose either 4 x 6, 3 x 8, or 2 x 12. If we choose 4 and 6,
If we choose 3 and 8, we will have to iterate the process because 8 is also greater than 6, so
and therefore
If n is prime, we simply add +1 to it, do the same as for a composite n, and then reroll the last slot.
For example, to simulate a D11, we could use the same D12 as we used earlier, but with the final slot rerolled, so
and therefore
Worked Example
This example will exhaustively demonstrate how the D8 shown above represents a statistically fair 8-sided die. We have
and therefore,
the roll of a 1 on the D2 and a 1 on the D4 gives a result of 1;
the roll of a 1 on the D2 and a 2 on the D4 gives a result of 2;
the roll of a 1 on the D2 and a 3 on the D4 gives a result of 3;
the roll of a 1 on the D2 and a 4 on the D4 gives a result of 4;
the roll of a 2 on the D2 and a 1 on the D4 gives a result of 5;
the roll of a 2 on the D2 and a 2 on the D4 gives a result of 6;
the roll of a 2 on the D2 and a 3 on the D4 gives a result of 7;
the roll of a 2 on the D2 and a 4 on the D4 gives a result of 8.
We see that each number on the D8 appears precisely once, so each has the same chance of being rolled. Therefore, this D8 is statistically fair—it is identical to rolling an octahedral D8.
More Worked Examples
In case the method isn't clear, here are some more worked examples. It's a good idea to use coloured dice and have a clear ordering in mind to hasten the process, so let's read the white die first, then the red, then (if needed) the black.
(1) For example, n=9. We can use p=q=3, giving
Then,
the roll
gives a result of 8—because we got a 3 on the white D3, which means we use D3 + 6 on the red die;
the roll
gives a result of 1;
the roll
gives a result of 6;
the roll
gives a result of 2.
(2) For example, n=11. From above, we have
Then,
the roll
gives a result of 11;
the roll
requires the white die to be rerolled because of the D4—the white die rerolls a
giving a result of 9;
the roll
gives a result of 2;
the roll
triggers a full reroll—the reroll
gives a result of 5.
Note that the second roll only required one die to be rerolled, whereas the fourth roll required two dice to be rerolled. This is because, in the second roll, the white die triggered a reroll just on the D4 and it would be statistically unfair to reroll the red die as it had nothing to do with that D4. However, in the fourth roll, a combination of two dice caused a reroll, so both were rerolled.
(3) For example, n=33. We can use p=3 and q=11, giving
Then,
the roll
gives a result of 12;
the roll
gives a result of 9;
the roll
requires the red die to be rerolled because of the D4—the red die rerolls a
giving a result of 21;
the roll
gives a result of 17.
Using Other Dice
This page has focused on using D6s to simulate a Dn, but any dice can be used. The most important thing is to first define all the Dn with n less than or equal to the number of sides on the die being used, then the rest of the method works the same as for a D6.
For example, if we use a D10 then we define:
Then, to simulate a D12 using D10s, we can use the same representation of a D12 as before, namely
but using the D4 and D3 as defined for a D10.
The dice image at the top of the page is from Wikipedia.



Leave a Comment