← All posts

A Fair Dice Roller for RPGs You Can Trust

The Dungeon Trainer · July 18, 2026 · 8 min read
Polyhedral dice in a wooden tray surrounded by balance scales, candles, a castle, and fantasy gaming props.

Chanting rises from the choir hall beneath Ashwarren Keep, low and steady, and it has not stopped in an hour. One night remains before the Silence Bell rings. The rogue slips through the dark toward the last guarded door, and the table reaches the moment that matters: a Stealth check. A fair dice roller for RPG play d…

Chanting rises from the choir hall beneath Ashwarren Keep, low and steady, and it has not stopped in an hour. One night remains before the Silence Bell rings. The rogue slips through the dark toward the last guarded door, and the table reaches the moment that matters: a Stealth check. A fair dice roller for RPG play does more than produce a number. It establishes whether the outcome belongs to chance, the rules, and the players' choices - or to software that quietly decided what would make the better story.

For a tabletop campaign, that distinction is not technical trivia. It is the foundation of trust. A failed roll can turn a careful infiltration into a running battle. A critical success can open a branch no one, including the Game Master, expected. If players suspect the dice are being adjusted to protect a plot, reward a favored character, or keep an AI narration on track, the stakes vanish.

What Fair Means at an RPG Table

Fairness does not mean every player gets equal success. Dice are not fair because they distribute dramatic moments evenly, and they should not be. A natural 1 remains possible after three natural 1s. A wizard can fail an easy check. A fighter can land a spectacular strike at precisely the wrong time for the villain's monologue.

A fair roller means each valid result has the probability the die and rules say it should have. For a standard d20, every face must have a one-in-twenty chance before modifiers, advantage, disadvantage, rerolls, or other explicit mechanics apply. The roller should not know that a failure would derail a prepared encounter and decide to soften it. It should not see that a player has had bad luck and secretly compensate.

That last point can feel harsh, especially in a campaign built around collaboration. But narrative care belongs in encounter design, consequence design, and adjudication. It does not belong inside a concealed randomizer. A GM can prepare fail-forward outcomes, alternate routes, and clues that do not depend on one check. Those are transparent design choices. Quietly changing a roll is something else entirely.

Why AI Makes Dice Separation Essential

Language models are good at generating plausible text. They can narrate a rain-soaked bridge, portray a suspicious quartermaster, and propose what a goblin might do after its leader falls. But a language model is not a random number generator, and it should not be treated as one.

If an AI is asked to "roll a d20," it may produce a number as part of its response. That number can look convincing while having no verifiable relationship to a real random process. Worse, the model may favor an outcome that fits the surrounding fiction. It may invent a percentage, imply a roll occurred when it did not, or shape the result around the next paragraph it wants to write.

For casual solo brainstorming, that may be acceptable. For a shared RPG table where players make consequential decisions, it is a credibility problem. The system that narrates the outcome should not also have unobserved control over the random event that caused it.

The answer is architectural, not rhetorical: dice resolve in code, never by the model. The roller generates the result independently. Structured campaign state applies declared modifiers and relevant rules. Only then does the narration layer receive the resolved outcome and describe what happens.

That separation preserves a clear chain of adjudication. The player declares an action. The GM or game system identifies the applicable check and DC. Code rolls the die. Rules and modifiers determine success, failure, or a more specific result. Narration turns that result into table fiction. Each layer has a job, and no layer gets to quietly rewrite another.

A Fair Dice Roller for RPGs Needs More Than Randomness

Random output is necessary, but it is not enough. A useful roller must make the resolution legible to the people affected by it. At a minimum, players should be able to see the die result, modifiers, and final total. When advantage, disadvantage, rerolls, bonuses, or penalties apply, the system should show the inputs rather than asking the table to accept an unexplained number.

Consider a ranger attempting to cross a crumbling causeway while arrows fall from the walls. The relevant output should tell the table whether the d20 was 7, whether a +5 Acrobatics modifier applied, whether advantage was used, and whether the final 12 meets the established DC. That information lets players understand the ruling and respond intelligently.

Visibility also protects the GM. A human GM makes many rapid calls under pressure. A structured record reduces arguments caused by memory drift: Was that Bless bonus included? Did the rogue still have advantage from being unseen? Was the roll made before or after the Bardic Inspiration die was declared? The goal is not to turn play into litigation. It is to give the table a shared factual ground when the fiction gets complicated.

For multiplayer play, a visible history matters even more. Players may be joining remotely, returning after a missed session, or reviewing a pivotal fight later. A clear roll record supports continuity without requiring everyone to reconstruct the scene from chat logs and recollection.

Fairness Also Depends on Consistent Adjudication

Dice cannot repair unclear rulings. If the table changes what a successful check means after seeing the result, even a perfectly random roll can feel manipulated. Fair play requires a stable relationship between declared action, difficulty, consequence, and resolution.

This does not mean every DC must be announced. Hidden information is part of many games. A character may not know how difficult it is to decipher a demon's contract or sneak past a sentry who has already been alerted. But the GM should know what success and failure mean before the dice hit the table, especially when a roll can change the campaign's direction.

The best practice is to establish stakes at the right level of detail. "On a success, you reach the door unseen. On a failure, you may still get there, but the guards will know someone is in the archive." That preserves uncertainty while making player agency real. The rogue can choose whether the risk is worth taking, and the result does not need to be bent afterward to preserve pacing.

There are exceptions. Some actions simply should not require a roll. If the party has the correct key, opening the lock is not a suspenseful test. If a character could repeat an attempt indefinitely with no changing cost, failure may only create empty delay. Good adjudication asks for dice when uncertainty and consequence are both present.

Choosing the Right Roller for Your Table

Physical dice remain an excellent option for in-person groups. They are tactile, visible, and socially legible. If everyone can see the roll and trusts the dice, there is little reason to replace that ritual.

Digital rollers become especially valuable when a group plays online, needs automated modifiers, or wants persistent campaign records. In those cases, look for a tool that treats dice as a separate system rather than a decorative line in an AI response. You want code-based rolls, readable results, explicit rule handling, and a clear boundary between random resolution and generated narration.

It also helps to consider the kind of game you are running. A light, improvisational one-shot may tolerate manual rolls and loose tracking. A long-running 5E-compatible campaign with conditions, concentration, resources, and layered character abilities benefits from structured state. The more the table depends on accurate continuity, the more valuable it is to know where each number came from.

The Dungeon Trainer uses code-rolled dice independently of its AI Dungeon Master, so a model can narrate a desperate leap across the chasm without selecting the result. That distinction supports the table's real work: making choices under uncertainty and living with what follows.

The Point Is Not Perfect Luck

No dice roller can promise that every session will feel balanced. Randomness can create brutal streaks, anticlimactic victories, and a spectacular plan undone by one low roll. That is part of the bargain players make when they choose a game with dice.

What a fair system can promise is cleaner: it will not manufacture drama behind the screen. It will preserve the difference between a hard consequence and a dishonest one. When the party slips past the guarded door after a narrow success, they should know they earned that moment. When the alarm horn sounds after a failure, they should know the next branch of the campaign is theirs to face.

References

Zhao, M., Du, Y., & Wang, M. (2026). Large language models are bad dice players: LLMs struggle to generate random numbers from statistical distributions. arXiv. https://arxiv.org/abs/2601.05414

5th Edition SRD. (n.d.). Advantage and disadvantage. https://5thsrd.org/rules/advantage\and\disadvantage/

Artwork on this page was generated using AI.

This work includes material taken from the System Reference Document 5.2.1 by Wizards of the Coast LLC and is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/).

Honest diceRunning the game
  • Prepare Tabletop RPG Scenes Faster for Game Night

    The choir hall beneath Ashwarren Keep has gone silent, and that silence is worse than the chanting. The high priest stands at the altar with both hands on the Silence Bell's cradle, and the last ward-stone is cracking under his palm. The rogue wants to pick the vestry lock behind the altar. The cleric wants to hold th…

  • How to Remember Campaign Details Without Losing Pace

    A player asks whether the baron still favors the left hand he injured three sessions ago. Another wants to call in the debt owed by a smuggler you named during a rushed tavern scene. The party is standing at the sealed gate of an old dwarven hold, and everyone is waiting for your answer.

  • 5e Rules Adjudication That Keeps Play Moving

    A wounded courier collapses through the waystation door at dusk, Gravehold riders less than a mile behind her. Before she loses consciousness, she presses a locked message case into the rogue's hands: proof that Ashwarren Keep has fallen and the Silence Bell breaks in five days. The case is sealed, the riders are clos…