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.

Filter by
Sorted by
Tagged with
1
vote
0answers
95 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 ...
7
votes
2answers
611 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 ...
28
votes
4answers
4k 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 ...
5
votes
1answer
599 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 ...
1
vote
1answer
116 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/...
5
votes
3answers
380 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
1answer
95 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 ...
6
votes
3answers
949 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] ...
4
votes
1answer
116 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
1answer
67 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 ...
5
votes
2answers
184 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 ...
2
votes
1answer
84 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 ...
7
votes
1answer
214 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,...
8
votes
2answers
180 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
244 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 ...
7
votes
1answer
199 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 ...
9
votes
2answers
571 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
538 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
261 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
818 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
171 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
307 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
412 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
365 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
1k 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
112 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
268 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
551 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 ...
10
votes
3answers
807 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
397 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 ...
5
votes
4answers
5k 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 ...
3
votes
1answer
641 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
426 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
274 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
85 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
357 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
572 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
2k 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
493 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
854 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
583 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
563 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
610 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
305 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 "...
10
votes
3answers
738 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
779 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 ...