# 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.

60 questions
Filter by
Sorted by
Tagged with
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
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

### How do I find the highest number rolled in a pool if dice, and the number of times it is rolled using AnyDice?

I am learning the basics of AnyDice, and have seen it used to accomplish some rather complex algorithms. I'm running into a very rudimentary problem. Say I want to roll a pool of five ten-sided dice, ...
4k views

### How should I emulate the highest in an irregular dice pool in AnyDice?

Basically, I'm trying to do something like [highest 1 of {a pool of Xd4, Yd6, Zd8, etc, all together}] For example:I roll 1d4 and 1d6 and 1d8; their results are, respectively, 4(out of 4 max), 5(out ...
• 2,244
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
417 views

### AnyDice: Second highest roll from mixed pool

I'm struggling to adapt Ilmari Karonen's answers from these two questions to my problem. I want to look at the second highest value from various pools. ...
• 3,276
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-...
5k views

### How do I model the fighter's Great Weapon Fighting fighting style in Anydice?

I was trying to create an AnyDice function to model the Great Weapon Fighting fighting style (which lets you reroll 1s and 2s), but I couldn't get it to work on any arbitrary dice. I've found this ...
3k views

### How can I examine the distribution of successes-counting mixed dice pools?

After looking at AnyDice's Documentation and Function Library, I remain baffled. I know that AnyDice can do this, but I don't know how to tell it to. Scott Gray's Dice Pool Generator is easier to use ...
• 190k
4k views

### How can I model Burning Wheel probabilities in AnyDice?

I have a basic intuition about dice in Burning Wheel, but it's handy to be able to look at actual probability distributions to hone your intuition. Especially since important rolls can involve ...
• 29.1k
4k views

### How can I get the highest two die rolls from a mixed pool in AnyDice?

Let's say the rulebook says this: Roll one 4-sided die, two 6-sided dice, and one 10-sided die. Add the highest two rolls together. In a different environment, I might write something like this: ...
• 17k
1k views

### How to calculate the probabilities for eliminative dice pools (dice cancelling mechanic) in Neon City Overdrive?

The game Neon City Overdrive uses the following resolution mechanic for checks: create a pool of Action Dice and (possibly) another pool of differently-colored Danger Dice (all d6, generally up to 5 ...
• 111
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
2k views

### Modelling an opposed dice pool mechanic in AnyDice

I humbly request an AnyDice program for this mechanic: The attacker (A) rolls a number of d6 based on his parameters. The defender (D) rolls a number of d6 based on his parameters. The highest die ...
• 71
2k views

### AnyDice Help: ORE-Like Resolution

I am looking for help with creating an AnyDice program that can calculate the possibilities of the following mechanic. Players roll a number of d6, then proceed to sum all dice of a single set of ...
583 views

### AnyDice error: Boolean values can only be numbers

I'm trying to write code that helps calculate the probability of success. Negative luck adds cursed dice to the bonus dice pool, which in the case of a crit burns additional dice from the skill level. ...
• 43
9k views

### How can I use AnyDice to check counting-success probabilities?

Sorry for asking a "do the work for me" type question, but I'm looking at the AnyDice documentation and appear to be missing something. I'm hoping to not just get the question answered, but learn how ...
• 21.8k
4k views

### How does replacing Advantage with a flat +2 affect Champion critical hit damage output?

My DM does not like Advantage/Disadvantage. While I disagree with his reasons on this, he has decided to replace it with a +2/-2 rule and I respect him (mostly) enough to follow his rules. I recently ...
• 3,516
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
7k views

### Using AnyDice to determine the odds of getting a specific number sequence on multiple dice

After a few hours trying to design the proper code in AnyDice, I had to admit I didn't find a proper way to reach my goal, so I'm wondering if someone could give me a helping hand. Here is the ...
• 91
3k views

### How do I use AnyDice with Classic World of Darkness / 20th Anniversary?

How can I take advantage of AnyDice with 20th Anniversary rules? I'm new to AnyDice but very interested in using it. I would like a wrapper function that accepts the following params. the number of ...
• 805
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 can I calculate the difference between two rolls in AnyDice?

How do I calculate the following in AnyDice? 2d6, subtract lowest result from highest.
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
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
302 views

### Disadvantage/adversity dice pool mechanic that knocks dice greater than 1 out of the pool and adds 1s to it

I am working on a dice pool system for skills and actions to be used in a new system. In this system, any rolls of 1 will negatively affect the outcome of resolving an action using a dice pool. In ...
• 43
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 ...
4k views

### Incorporating expanded crit-range into anydice?

Not sure if this is a valid "tools" question, but here goes: I want to compare a build that can attack 5 times, with a 5% critical chance; to a build that can attack 3 times, but with a 15% critical ...
• 13.3k
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 ...
2k views

### Struggling with rolling for stats probability calculation

I tried finding a specific statistic calculator, even tried playing with anydice.com, with no success. My friends love to roll dice, but we also want the same playing field when starting a campaign, ...
• 179
2k views

### Syntax for a unique dice system on Anydice?

I've been studying and toying with a lot of odd dice systems for a while now, and Anydice has been a great help in understanding the probability effects of different systems. However, I've run into ...
• 113
1k views

### How to model opposed rolls in Anydice?

I've seen there are quite a lot of brilliant people on this board answering questions about Anydice. I am hoping somebody will be kind enough to answer this one too. I want to use anydice to figure ...
• 113
2k views

### How can I get the highest or lowest values of an irregular dice pool in AnyDice?

I want to calculate irregular dice pools, such as (2d10, 1d8) in AnyDice, but I'm having difficulties. What I mean to do is out of a roll of 2d10 and a 1d8, take the highest (or lowest) two values ...
• 101
4k views

### How can I execute code depending on a die value in AnyDice?

I'd like to be able to have a conditional test the value of a die or set of dice. Here's a simple example using a d6, but I'm looking for a way to check values of arbitrary dice sets. ...
• 99
2k views

### Are there anydice function(s) or code for Savage Worlds rolls?

I am trying to use the exploding function and the highest of functions, but I am having issues with the skill die or wild die side of the roll. If I do output [highest 1 of 1d4 + 1d6] I get a ...
• 309
2k views

### How do you simulate dependent dice rolls in anydice?

I'm attempting to find the damage distribution (given a target with stats) of a series of two 5e attacks, mind sliver and then two melf's minute meteors. But it seems I'm having trouble modeling dice ...
• 192
976 views

### How to calculate probabilities for a three pool elimination mechanic?

I've been struggling to get my head around this dice pool mechanic either in anydice or even a bespoke program. There are 3 pools of d6, call them A, B & C: ...
• 206k
984 views

### Is it possible to model these probabilities in AnyDice?

I was asked by a pal to help him model a dice mechanic in AnyDice. I must admit I am an absolute neophyte with it, and I offered to solve it using software I'm better versed in. I'd like to be able to ...
• 203
233 views

### Anydice: a pool where stress dice cancel out action dice of equal or lower value and return the number and value of action dice remaining in the pool?

I've seen a couple of other posts with similar but distinctly different dice canceling mechanics so I figured I would ask for a hand. The mechanic is this: Players roll a pool of Xd6 Action dice and ...
878 views

### How do I create BLeeM's "Emphasis Rolls" on Anydice?

Just came across this rolling mechanic in my feed, and wanted to see an actual results table out of curiosity: https://homebrewery.naturalcrit.com/share/wyL-vuEIDrbC For the link averse: Roll 2d20, ...
2k views

### How can I calculate the distribution of “Roll 3D6, reroll any dice once, treat all 1's as a 2” in AnyDice?

I'm wondering how to use Anydice to calculate the following: Roll 3d6, treating all 1's as 2's, you may reroll each die once, so we do this if the roll is below the average. So 3d6, can reroll each ...
• 160
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 ...
444 views

### How to count duplicates in a mixed pool using AnyDice?

The following question provides a function that answers the question for a single kind of die; How do I count the number of duplicates in anydice? I want to count how many duplicates there are in a ...
• 3,276
720 views

### Anydice: two-colored polyhedral dice pool

I trying to calculate probabilities for this dice mechanic, but I'm not sure that anydice can calculate that at all. The dice pool mechanic works like this: Players assemble a dice pool with green and ...
• 53
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
1k views

### How to calculate the likelihood of success for increasing DC

How would I go about calculating the odds of success someone has, given N total tries at a skill check, a skill modifier of M, ...
• 159
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
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 ...