Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
1answer
50 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 ...
6
votes
2answers
178 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 ...
6
votes
1answer
109 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 ...
9
votes
2answers
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 ...
52
votes
8answers
4k 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 ...
8
votes
2answers
310 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 ...
8
votes
1answer
443 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 ...
19
votes
6answers
2k 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-...
5
votes
1answer
184 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: ...
4
votes
3answers
448 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 ...
3
votes
1answer
129 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 ...
7
votes
1answer
242 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 ...
3
votes
1answer
300 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 ...
7
votes
2answers
270 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 ...
5
votes
2answers
883 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]...
4
votes
0answers
93 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 ...
5
votes
1answer
215 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 ...
2
votes
1answer
448 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 ...
38
votes
1answer
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 ...
9
votes
3answers
670 views

Help Modeling 5e Stat “Party Draft Pool” 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]. ...
1
vote
2answers
356 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 ...
3
votes
3answers
4k views

4d6 reroll 1's and 2's and drop lowest can anydice do this

I am joining a D&D group and the DM has us roll 4d6 reroll any 1 or 2 and then drop the lowest I am curious about the distribution and wonder if anydice could do it
4
votes
1answer
543 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 ...
5
votes
3answers
389 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 ...
2
votes
1answer
201 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 ...
3
votes
1answer
83 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 ...
4
votes
2answers
310 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
vote
1answer
452 views

How to show a relationship between dice pool size and success probability?

I want to see a dice pool graph in Anydice, that shows a probability of at least one success. Here's an example. There are several dice pools - 1d6, 2d6, 3d6 and so forth. A "success" is >=5. The ...
15
votes
5answers
1k 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 ...
5
votes
3answers
479 views

How can I calculate the probability of being able to purchase a card in my custom die system?

I'm trying to work out the Probability of reaching a total with a custom die system. Each die in this system has 6 sides: 1 Sword, 2 Sword, 3 Sword, Political, Castle, and Wizard. Each player starts ...
8
votes
1answer
747 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 ...
5
votes
1answer
526 views

Modelling rolling for stats in Anydice

I'm playing around with character generation in a purposefully punishing roguelike-inspired D&D homebrew, and trying to evaluate them using Anydice so that each method is roughly comparable. The ...
4
votes
1answer
542 views

Why is Anydice giving me a larger result than expected?

In the wonderful anydice program I created a simulation of the rolls and damage of my level 1 Rogue character in 5e DnD against an enemy of AC of 16. My maximum damage should be 25 (6 from sneak ...
3
votes
1answer
511 views

Implementing multiattack in AnyDice

I am trying to set up a multiattack function in AnyDice. I already have a function that calculates the damage dealt by a single attack, but now I want to calculate the total damage dealt by multiple ...
2
votes
1answer
287 views

Help with Anydice function for 3d10 dice pool

I'd like to see the probability distribution for 3d10 being rolled, where the highest number is positive, the lowest (closest to 1) is negative, and the middle die is ignored. (As a way of providing "...
9
votes
3answers
509 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: ...
3
votes
2answers
728 views

Anydice probabilities that allow for addition or subtraction of one die from another

I'm new to anydice, so forgive me if I've overlooked something obvious, but I can't seem to figure this one out. I'm working on a dice mechanic that allows the player to choose whether or not they ...
5
votes
1answer
439 views

Help with probability for a complicated dice pool mechanic

I'm putting together a system with experimental dice mechanics. I want to know the probabilities involved, preferably in a way such as anyDice where I can easily change all variables and get the ...
7
votes
1answer
1k views

How do I get AnyDice to parse 1d2d4 the way I want it to?

The statement 1d2d4 is ambiguous. I might mean (1d2)d4, which is what AnyDice guesses by default, but I also might mean 1d(2d4). It makes sense that the default behavior is as it is because Order of ...
5
votes
2answers
572 views

AnyDice function to use a die as high/low flip and critical

I've been developing a homebrew system that utilizes 3d12 and I've been wanting to get the probabilities plotted so I could, for one, see how viable such a system would work and, two, be able to work ...
10
votes
4answers
1k 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 ...
2
votes
2answers
376 views

Homebrew system need help with probability in any dice

I am not much of a programmer. While I have figured out how to do basic things with anydice, I am having trouble figuring out the least probability of successes needed for a difficulty number from 2-...
1
vote
0answers
144 views

Non-integral variables in AnyDice [closed]

Is there a way to have non-integer variables in AnyDice? (E.g. for each level of critical I need to hit by at least 5.5: first critical level needs 6, second 11, third 17, fourth 23, etc.)
7
votes
3answers
1k views

Odds for dice pool with exploding dice

I'm designing a tabletop game with dice pool mechanic for combat resolution. You roll some d6 and each die that rolled at least 3 counts as a SUCCESS: If you roll more 1s than 6s, it's a fumble One ...
4
votes
1answer
367 views

Are my AnyDice calculations for the Old World Of Darkness correct?

Here is the average amount of successes you can get from a given dicepool (left column) and given difficulty (upper row). Are the forumulas correct? Here is my program on AnyDice.com. Are there any ...
33
votes
6answers
4k views

How many rolls does it take to get to six coins?

I'm designing a microRPG and need some help calculating probabilities so I can make an informed decision about how many coins to start with (controlling session duration and early-game frustration). ...
15
votes
4answers
1k 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 ...
11
votes
4answers
3k views

What is your chance to win in a contest where you have advantage and your opponent has disadvantage?

I'm trying to think of the answer to a certain problem, but I'm finding it hard to calculate. How much of a statistical edge do you have in a scenario where all of the following are true? You engage ...
3
votes
1answer
176 views

What is incorrect with my Anydice logic for 'Weapons of the Gods' roll mechanics?

While scouting Actual Play write-ups, I have encountered a reference for an interesting dice-rolling mechanic. For a test, players roll a pool (3-7) of d10 (but 0..9 not 1..10). The value coming ...
9
votes
2answers
399 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 ...