Aller au contenu

Lanceur de dés

Lancez N dés à M faces (d4 / d6 / d20 / sur-mesure) - aléatoire cryptographique, dans le navigateur.

Fonctionne dans votre navigateur

Lancez n'importe quelle combinaison de dés : preset (d4 / d6 / d20...) ou nombre de faces personnalisé. Chaque résultat est affiché avec la somme et un modificateur optionnel. Aléa fourni par window.crypto.getRandomValues.

Comment l'utiliser

  1. Pick the dice

    Number of dice + sides per die. Use a preset or type a custom side count.

  2. Add a modifier (optional)

    Constant added to the sum, like +2 in '3d6+2'.

  3. Roll

    Hit the Roll button. The individual rolls, sum and total appear; history below tracks the last 10 rolls.

Qu'est-ce que c'est ?

A dice roller is a software replacement for physical dice that needs to feel as fair as the real thing. The hard part isn't the rolling - it's the randomness source. Math.random is biased on older browsers and has known patterns; crypto.getRandomValues doesn't, so it's the right pick for any roll that has stakes.

Quand l'utiliser

Tabletop role-playing games when the actual dice are upstairs or missing. Quick decisions ('pick a movie from this shortlist of 6'). Classroom probability demonstrations. Generating sequences for music composition or art. Stress-testing a random-related code path.

Erreurs courantes

Confusing 'd6' with 'random number 1-6 inclusive' - that's exactly what d6 is, but some online dice tools quietly return 0-5 or 1-7 because of off-by-one bugs. Adding the modifier to each die separately when the rules say add it to the sum. And ignoring the roll history - useful for verifying that a long session was actually random and not a single long run of bad luck.

FAQ

Is it really random?
Yes - we use crypto.getRandomValues, the browser's cryptographically-secure PRNG. The same source that backs TLS key generation. No bias, no patterns.
Can I roll '4d6+2'?
Yes. Set count = 4, sides = 6, modifier = +2. The result line shows the four individual rolls, the sum, and the total with modifier applied.

Plus dans cette catégorie