# Questions tagged [anydice]

For questions about AnyDice.com, a dice probability calculator that offers probability curves for defined rolls, along with a function library for more complex calculations.

201 questions
Filter by
Sorted by
Tagged with
2k views

### Roll and Keep in Anydice

I want to check out the probabilities of the Roll and Keep system (as known from L5R 1-4th Edition) in Anydice. We luckily have boundaries: We roll Skill + Stat + Modifier initial dice. 10 explodes;...
• 40k
1k views

### AnyDice compare dice roll value to number on a multidice roll

I've been trying to use AnyDice to calculate some stuff and got completely overwhelmed (never used it properly before). I'm trying to do something along the lines of: Roll n + p amount of d10 dice. ...
• 171
127 views

### Victoriana (Heresy) dice in Anydice?

I'm looking for help with calculating the dice probabilities for the Heresy dice system, as featured in the Victoriana (3rd ed, in case it matters) RPG. It's a d6 dice pool system. You roll ...
• 53
1k views

### How do I find the outcomes of Ironsworn rolls in Anydice?

Ironsworn generally has two kinds of dice rolls in play: action rolls and progress rolls. Progress rolls are static, and use the number of progress boxes you've filled in through play (ranging from 0 ...
• 6,240
1k views

### Anydice formula to calculate hit percentage against AC 5-25

I'm trying to create what I think is a simple formula in Anydice and struggling to figure it out. I roll a 20-sided dice, add a number x, and want to know the odds that the number will be greater or ...
2k views

### Rolling 7 stats of "4d6, reroll 1s and 2s, drop the lowest number" and dropping the lowest sum in AnyDice

Rolling an individual (N)PC stat of 4d6, rerolling 1s and 2s, and dropping the lowest gives a modal average of 15 with a range of 9-18. The AnyDice code to produce the graph for that is simple enough (...
540 views

### Function to calculate "Nd6 take highest 2, sort descending" probabilities in AnyDice

I'm creating an injury-table where the player has to roll a d66 to see how severe the injury her character sustains is. The players roll up to ...
• 231
2k views

### How do I model a fudge dice roll with re-rolls in Anydice?

I need a little help with a probability calculation in Anydice. We are making a fudge based game using 4 fudge dice, so basically a d3 system: -1,0,1 We are allowing your attribute or stats in the ...
1 vote
255 views

### Given an array of probabilities, can AnyDice output the number of specific die type (d6) combinations to best fit? [closed]

Given an array of probabilities: 5% 5% 4% 2% 1% 12% 12% 10% 6% 4% 42% 41% 38% 23% 11% 53% 51% 45% 21% 9% 87% 86% 80% 54% 31% Can AnyDice generate a list ...
• 119
793 views

### General method to output d{d1,d2,d3...dn} in AnyDice

I'm trying to find a more general method to create certain one-sided distributions using anydice.com, such that the values less than or equal to 0 show as 0, and the rest show normally, of a 2dy-8 ...
• 73
8k views

### How does one calculate the distribution of the Matt Colville way of rolling stats?

Specifically, the Matt Colville way of rolling stats is: Roll 4d6, drop the lowest value die for 1 stat; If this roll is lower than 8, reroll it; Repeat steps 1 and 2 until you have a set of 6 stats ...
837 views

### Probability of rolling a specific combination of results with nd6

So far I was able to figure out most things I needed to do in anydice on my own and with help of various posts in forums, however in this case my math knowledge fails me. How do I calculate the ...
• 53
1 vote
3k views

### Any Dice Help - Reroll 1's in dice pools [duplicate]

I have made some progress in AnyDice showing the probability for dice resolution system in the RPG system I've been working on. Here is the link to what I have so far: https://anydice.com/program/...
1k views

### How can I calculate the difference between two rolls in AnyDice?

How do I calculate the following in AnyDice? 2d6, subtract lowest result from highest.
1 vote
160 views

### How can I model the probabilities for highest and lowest of opposing dice pools?

This is a variation of a dice mechanic I'm working on. You create a d6 pool of Edge dice and Snag dice and roll all of them. Compare the highest Edge die and the highest Snag die. If the Edge die ...
2k views

### How can I calculate the sum of 2 random dice out of a 3d6 pool in AnyDice?

With AnyDice it's pretty easy to calculate probalities for highest and lowest 2 of a 3d6 pool, namely with: output [highest 2 of 3d6] output [lowest 2 of 3d6] ...
• 103
183 views

### How can I model the probabilities for this mechanic involving cancelling out dice pools in AnyDice?

So I'm struggling with the probabilities for a dice mechanic. You create a d6 pool of Edge dice and Snag dice and roll all of them. Each Snag die cancels an Edge die of a lower value. After ...
1 vote
275 views

### How can I calculate the probability of complete success with this mixed dice pool using AnyDice?

I've playing around with dice probabilities and have a spreadsheet that handles the calculation for basic probabilities rolling a set of dice and counting the number of successes. I am completely new ...
800 views

### AnyDice: How to calculate the winner in opposed rolls over multiple rounds?

I am having some difficulty doing opposed rolls over multiple rounds. I am looking for a character vs. character statistics. I call them "Rookie" and "Enemy" respectively. I want to know what the ...
290 views

### How do I find the odds in a dice pool contest?

I'm designing a system where overall success is determined using a dice pool where you count the number of max-value faces among dice rolled and compare this number to some difficulty number. In this ...
3k views

### Counting fails and successes in dice pools in Anydice

I'm trying to figure out probabilities for a d6 dice pool mechanic where [5,6] are successes, and [1.2] are fails causing the player to lose that dice from the pool. I've been using "output [count {1,...
2k views

### How to calculate conditional probabilities in AnyDice?

While writing the addendum to this answer, which considers the relative value of skill vs. characteristic in the "3d20 system" of Neuroshima, I found myself wanting an answer to a deceptively simple ...
• 23.6k
637 views

### How can I create an AnyDice function where I can roll 3d20 and then lower the results of the individual die rolls?

In Neuroshima system you throw 3D20, ignore the highest result and use your skill to lower the results on 2 remaining dice, to get them equal or below your characteristic value, such as agility. Each ...
699 views

### How can I generate a heat map from AnyDice results?

I want to show some effects of changing dice rolls on a heat map, where on one axis I have task difficulty (level of a spell, quality of lock to pick etc), and on another character level / proficiency ...
• 23.5k
1k views

### Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?

Say we have three ogres, and want to put them to sleep as a handful of level 7 casters with the sleep spell. We want to know how many of them, on average, will get put to sleep. I tried to make an ...
6k views

### How to approximate rolls for potions of healing using only d6's?

I want to make tabletop potions of healing out of corked vials (test tubes) filled with dice. Each vial would be labeled and filled based on the potion it represents. For example, a vial for a potion ...
• 30k
4k views

### How can I use AnyDice to simulate rolling 6d6, and dropping the 2 lowest and 1 highest dice?

I'm running a new D&D 5e campaign soon and I'd like to try rolling for stats with some guardrails. Doing some test throws at the table, I liked the look of rolling 6d6, then dropping the highest ...
• 355
1k views

### Anydice formula for Great Weapon Master Feat

I'm trying to compare my rogue's damage output to our party's fighter but I've run into a couple snags.. The fighter uses the Great Weapon Master feat and that gives him an extra attack as a bonus ...
4k views

### How do I determine the probability of rolling various ranges of numbers on 4d10, 5d10, etc.?

After realizing that my knowledge of how probabilities function has waned significantly, I'm wondering what the probability of rolling multiple 6's or higher (6-10) on four 10-sided dice, five 10-...
1k views

### How can I use AnyDice to get the odds of a specific number sequence from rolling 3d10 and dropping the lowest die?

I'm not very experienced with the program, or programming in general, and so I'm stuck. I managed to figure out how to get the probability of different sums of highest 2 of 3d10: ...
• 51
5k views

### In AnyDice, how can I calculate the number of successes in the highest dice in a given dice pool?

I've tried the following code output [count {5..6} in [highest 2 of 10d6]] Which yields 0: 99.90% 1: 0.10% However, these ...
768 views

### WoD in anydice: rolling for minimum number of successes

We all know how to roll dice in WoD in anydice, but I stand in front of a different yet related problem: There are some gifts (for example eye pluck for Corax) [and other powers] that demand a ...
• 40k
1k views

### AnyDice Function: 3d6, lowest die has floor of 3

I've played around with the code a little, but having some trouble figuring out how to to write a function that rolls 3d6 and if the lowest die result is less then 3, then it changes that die to a 3 ...
• 79
1k views

### AnyDice formula for rolling 2d20 and dropping farthest value from 10

I'm trying to check the probabilities of rolling 2d20, and dropping the farthest from ten using anydice. (i.e. "Most Average" weighted roll, similar to 5e advantage/disadvantage. Basically you'd ...
1k views

### How to calculate the probablity of getting 5 hits with 13 dice in Anydice?

How can I calculate probabilities for Shadowrun 5 in Anydice? In Shadowrun 5E (and 4E too, earlier it was completely different) you roll a 6 sided die for each point of your skill and the relevant ...
• 62.4k
4k views

### Rerolling and replacing the lowest result in Anydice

How can I script Anydice to reroll the lowest result, but keep the new result even if it is lower than the original? Until now I was using output [highest 2 of 3d12]...
• 63
430 views

### How does Anydice define OR operation? [closed]

This is not RPG related question, but since anydice questions are allowed: Does anyone know how the | operation is defined in anydice? Here is what documentation ...
581 views

### Exploding "D9" success-counting pools in anydice?

I'm trying to use anydice to count the number of successes generated by rolling >= to a variable TN using a variable pool of d10s (with 0s counting as 0), that explode on 9s (by rerolling and adding ...
• 53
876 views

### I need a dice system with a unique behavior and rate of growth (preferably in ANYDICE to verify) [closed]

I am looking for a defense system where the probability of hitting is proportional to the inverse of a quadratic polynomial with respect to defense. I don't care about attack scaling yet. If you ...
5k views

### Can AnyDice.com handle weighted dice?

Is it possible to weight the dice in AnyDice.com and then use like normal? I'd like to use a standard d6, with values 1-6, but weighted such that the probability for rolling a specific value is as ...
• 483
2k views

### How can I model this "Party Draft Pool" ability score generation method in AnyDice?

I'm looking to model an alternate to the "4d6, drop the lowest" mechanic for determining ability scores. The proposed system works as follows: 4 players roll 4d6, drop the lowest x 6 [24 total]. ...
• 133
1 vote
556 views

### How can I write and compare these formulas using Anydice?

I'm attempting to use AnyDice to detect any differences in how we have started to value AC in our D&D game. We used to roll 1d20+mods Vs Target Armor Class For example, lets use this: 1d20+8 Vs ...
• 13
15k views

### How can I calculate the distribution of "roll 4d6, keep rerolling 1s and 2s, and drop the lowest die" in AnyDice?

I am joining a D&D group. To generate each ability score, the DM has us roll 4d6, reroll any 1 or 2, and then drop the lowest die. If the reroll is a 1 or 2, then reroll again and again until the ...
• 1,160
1k views

### Creating a 5th edition die roller in AnyDice: how to handle bonus damage on first hit?

I have been trying to create a complete probability generator for fifth edition D&D attack rolls in AnyDice, including features such as advantage/disadvantage, different crit ranges, bonus crit ...
• 2,200
619 views

### Modelling opposed dice pools with a swap

I have a dice pool system that awards for instance damage to the loser of an opposed roll. Players roll their pool of dice, with each player's target number being the highest number rolled by their ...
• 81
1k views

### How do I count the number of duplicates in anydice?

Let's say I have the following roll: 6 6 5 5 5 4. I want to count the number of duplicates, in this case 3 (6 and ...
• 2,244
127 views

### Modelling a custom attack resolution in AnyDice: highest non-draw die of pool

I'm experimenting with the probabilities of various "die pool" attack resolutions for a game I'm designing, knowing that pools will generally be 1-4 dice, with sacrifices to temporarily boost a die ...
• 2,244
689 views

### Comparing weapons in Anydice with different hit chances and damage

Broadly speaking I'd like to be able to compare 2 weapons where one weapon does more damage but I hit more often with the other. I am in 1st edition AD&D and am about to go up against some ...
• 1,160
1 vote