Dice Rolling Machine

Posted on
Dice Rolling Machine Rating: 5,0/5 7245 votes

Rolls 2 D6 dice. Lets you roll multiple dice like 2 D6s, or 3 D6s. Add, remove or set numbers of dice to roll. Combine with other types of dice (like D4 and D8) to throw and make a custom dice roll. Roll the dice multiple times. You can choose to see only the last roll of dice. Display sum/total of the dice thrown. The most common physical dice have 4, 6, 8, 10, 12, and 20 faces respectively, with 6-faced die comprising the majority of dice. This virtual dice roller can have any number of faces and can generate random numbers simulating a dice roll based on the number of faces and dice. The portable dice tumbling tower will provide you with convenience. You roll the dice to the tower and roll them completely to get a truly random result and prevent the dice from 'rogue'. Control your gaming environment to prevent the dice from rolling off the table. Chaotic systems, like rolling dice, are almost impossible to control. For example, the well-known amusement park ride, the Tilt-a-Whirl is so chaotic that the gravitational influence of a person randomly walking around within a hundred feet of the machine will make the angular position of the cars diverge within a minute or two.

Ars Cardboard

View more stories

We've all been there: you're at a pick-up roleplaying group at your local game shop, and that noisy munchkin to your right—who is playing some kind of half-dragon triple-multiclassed character from an out-of-print rulebook that he found a PDF of online—seems to roll more than his fair share of natural 20s. Okay, maybe we haven't all been there, but let me tell you: it's annoying when someone appears to be awfully lucky with their rolls.

The issue is slightly less pronounced with board games, where everyone tends to use the same pool of dice, but having dice regularly come up high or low can obviously affect how the game plays out.

Putting aside cases of intentional cheating, did you know that dice—particularly polyhedral dice like d20 or d8—are almost universally unbalanced? Some are more balanced than others, but as you would expect from mass-produced objects, small flaws in manufacturing and materials nearly always push each individual die either above or below the expected average roll.

Dice Rolling Machine

The question is, if we accept that no die will be completely fair, how do we at least make sure that the dice we're rolling aren't so unbalanced as to be unfair?

The ol' golf ball test

The simplest though not most accurate method of testing the balance of your dice is to float them in a glass of salted water. Depending on the die, you may have to add a lot of salt to achieve flotation. Place the die in the water, note which side of the die faces upwards, and then give it a flick.

For reasonably balanced dice, you should see a good variety of numbers facing upwards. For badly balanced dice, you'll probably see the same one or two faces regularly. Throw those bad dice out.

The, er, automatic roller and computer vision method

And then, of course, if you're the rare breed of roleplayer-cum-DIY-maker supernerd, you could create an automated rolling system that rolls your dice thousands of times, and then from those results work out the standard deviation for the perfect average roll.

Advertisement MachineFreebasic code for dice rolling machine

That's what Mark Fickett did, and you should read his superb (and very long) write-up of what he found out. I will summarise his setup and results here.

The die rolling machine is essentially a servo attached to a small ice cream tub, hooked up to an Arduino. The servo fires, the die is rolled, and then the Arduino triggers a camera overhead that takes a photo. Some computer vision software locates the die in the photo and extracts the number on the face of the die. The number is recorded, and then the process begins again, rolling the die hundreds or thousands of times until an adequate sample size has been reached.

Fickett used his machine to analyse a bunch of d20 made by popular brands—Chessex, Wiz, Game Science, etc.—and reported on his findings.

For the most part, the results were a mixed bag. The Chessex dice were all reasonably fair in that the rolls averaged about 10.5 (the perfect average roll on a d20), but the results were highly variable between each die (i.e. each die favoured different numbers, but the averaged total was close to 10.5). Wiz dice were similar: mostly fair, but with variable results.

In both cases, the Wiz and Chessex dice tended towards symmetrical distributions: so, if 20 came up a lot, 1 was also quite common on that same die, keeping the average at around 10.5. This is most likely down to the construction of the die (two halves stuck together) and the arrangement of the numbers (opposite sides always add up to 21).

Game Science dice, which have very sharp edges, are promoted by the company as being especially fair. In testing, one die had a very fair standard deviation of 0.07, but another had a not-especially-fair deviation of 0.12 (in fact, that die turned in an average roll value of 10.67, making it one of the 'luckiest' of the bunch).

Crystal Caste, which sells some rather unusually shaped dice (but no one in the UK seems to import them), had the worst fairness, with high deviations and low averages. (One die averaged just 10.18 and '1' was the most likely roll. If you get a lot of critical failures while roleplaying, maybe you've been using a Crystal Caste die?)

Here's a graph tallying up the fairness of all the dice tested. The red line shows how close the dice got to the ideal average (10.5); the blue bars show the deviation from perfectly fair roll frequency distribution (i.e. each face turns up roughly the same number of times).

Advertisement

Virtual Dice Roll

Correlation between geometry and roll frequency

Fickett also attempted to correlate the geometry of the die (specifically the distance between opposite sides of the die) and the observed frequency of rolled numbers. In some cases there was a correlation, with a longer distance resulting in a higher frequency for those two sides; in other cases, there was no correlation at all. This is likely because there can be other factors at play that aren't so easily measurable, such as any imperfections of the material inside the die.

One weakness of Fickett's analysis is that he only rolled plastic dice, because the automated rolling system probably wouldn't be strong enough to withstand thousands of metal die rolls. He also admits that the dice might behave differently when rolled in a different context (in a larger/smaller bucket, across a table top, etc).

Similar dice-fairness analyses have been performed by other people, too. The Awesome Dice Blog compared Chessex and Game Science d20s and found that, while Game Science dice were indeed quite fair, they rolled significantly fewer 14s (a finding that is somewhat backed up by Fickett's numbers). 1000d4 performed a huge analysis (by hand!) that found Game Science dice to be the most consistent, and Crystal Caste dice came out rather better than in Fickett's tests.

Ultimately, while some brands seem to be fairer (i.e. closer to an average of 10.5) than others, there is still lots of intra-brand variability (i.e. two dice from the same maker can roll a very different set of numbers).

One solution, if you really want to make sure that your dice rolls are fair, would be to analyse the characteristics of the dice you actually own. A more realistic solution, though, would be to buy a big bag of same-brand dice and force everyone to use dice from the same pool. And if anyone wants to bring their own dice to the gaming table, throw them into a glass of salt water first.

Listing image by Q Family

Non-Conventional Dice Roller

Use the following virtual dice roller to mimic dice that have a different number of faces from the conventional 6-faced die. The most common physical dice have 4, 6, 8, 10, 12, and 20 faces respectively, with 6-faced die comprising the majority of dice. This virtual dice roller can have any number of faces and can generate random numbers simulating a dice roll based on the number of faces and dice.


A dice is typically a small, throwable object that has multiple faces (most commonly six) and possible positions that indicate a number (or something else), used for generating random numbers and events. They are typically used for tabletop games, which include a wide variety of games, as well as for gambling. Examples of tabletop games that involve the use of dice include games like backgammon, Boggle, and Yahtzee, where dice are a central component of the game. Some other well-known tabletop games include Monopoly, Risk, Dungeons and Dragons, and Settlers of Catan. There are however, numerous others.

Dice shapes

The most commonly used dice shapes are shown in the image, and listed below.

How Does The Dice Rolling Machine Work

  • Tetrahedron: 4 faces – the blue die
  • Cube: 6 faces – the orange, cubic die
  • Octahedron: 8 faces – the green die
  • Pentagonal trapezohedron: 10 faces – the orange, non-cubic die
  • Dodecahedron: 12 faces – the yellow die
  • Icosahedron: 20 faces – the purple die

Although the image shows some of the more common die shapes, there are many other polyhedral dice, or dice of other shapes. There are also non-numeric dice, dice that do not follow a counting sequence that begins at one, and spherical dice.

How random is a dice?

Dice Rolling Machine Arduino

Based on probability, a die should have an equal probability of landing on each of its faces. However, this is not necessarily the case with mass produced dice as they cannot be truly random, since it is difficult to mass produce dice that are uniform, and there may be differences in the symmetry of the dice. Each dice, particularly d20 (20-sided polyhedral dice) and d8 (8-sided polyhedral dice) is often unbalanced, and more likely to roll certain numbers.

How to test how random your dice is:

Although it may not be the most accurate way to test how random your dice is, one relatively quick test you can do involves just a container, some water, and some salt:

Virtual Dice Roller For Kids

  1. Get a container that can fit the die you want to test
  2. Fill the container with water, then add salt and the die to the water – if the die doesn't float, add more salt until the die floats
  3. Flick the die and take note of which side faces upwards – repeatedly flick the dice and record the results

For a well-balanced die, you can expect a variety of numbers. If it is not well balanced, you will be more likely to notice certain numbers occurring more often. However, unless this test is performed numerous times, or the dice is heavily unbalanced, the user is not likely to notice a significant difference.

There are a number of companies that manufacture dice, and some more rigorous tests (than the one described above) have been performed on dice manufactured by different companies in an effort to determine how truly random the dice (mostly d20 dice) are. These studies confirmed that even dice manufactured within the same company under the same conditions could vary significantly from each other, and are not truly random. Some companies produced dice that were more random than others, but even then, they were not found to be truly random.

Virtual dice, like the one above, are almost always based on pseudo-random number generating algorithms, which are also not truly random. However, a virtual dice roll is likely more close to true randomness than most physical dice.