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
10 votes
2 answers
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;...
Trish's user avatar
  • 40k
6 votes
2 answers
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. ...
NulisDefo's user avatar
  • 171
5 votes
1 answer
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 ...
NatB's user avatar
  • 53
5 votes
1 answer
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 ...
Firebreak's user avatar
  • 6,240
3 votes
1 answer
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 ...
user61758's user avatar
11 votes
1 answer
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 (...
Charles Rockafellor's user avatar
5 votes
3 answers
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 ...
Johannes's user avatar
  • 231
4 votes
3 answers
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 ...
Shane Vinje's user avatar
1 vote
0 answers
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 ...
user3878824's user avatar
7 votes
2 answers
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 ...
Russ's user avatar
  • 73
28 votes
4 answers
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 ...
Bogdan Ionică's user avatar
5 votes
1 answer
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 ...
Panzer's user avatar
  • 53
1 vote
1 answer
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/...
Mitch Moore's user avatar
5 votes
3 answers
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.
Roelosaurus's user avatar
1 vote
1 answer
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 ...
Cezar Capacle's user avatar
10 votes
4 answers
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] ...
Topple's user avatar
  • 103
4 votes
1 answer
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 ...
Cezar Capacle's user avatar
1 vote
1 answer
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 ...
ReadyPlayerOne's user avatar
5 votes
2 answers
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 ...
baylisssm's user avatar
2 votes
1 answer
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 ...
Luke Washburn's user avatar
8 votes
1 answer
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,...
Macallan Lehane's user avatar
11 votes
2 answers
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 ...
Ilmari Karonen's user avatar
6 votes
2 answers
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 ...
Irrehaare's user avatar
8 votes
1 answer
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 ...
Mołot's user avatar
  • 23.5k
9 votes
2 answers
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 ...
David Coffron's user avatar
56 votes
8 answers
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 ...
Bloodcinder's user avatar
11 votes
2 answers
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 ...
retriever123's user avatar
8 votes
1 answer
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 ...
magicmike2x's user avatar
20 votes
6 answers
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-...
Brett Lindsay's user avatar
5 votes
1 answer
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: ...
Leo's user avatar
  • 51
4 votes
3 answers
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 ...
Miguel Bartelsman's user avatar
3 votes
1 answer
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 ...
Trish's user avatar
  • 40k
7 votes
1 answer
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 ...
Khyodee's user avatar
  • 79
3 votes
1 answer
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 ...
spicklesandwich's user avatar
9 votes
2 answers
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 ...
András's user avatar
  • 62.4k
6 votes
2 answers
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]...
llk's user avatar
  • 63
4 votes
0 answers
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 ...
Andrew Savinykh's user avatar
5 votes
1 answer
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 ...
Joel's user avatar
  • 53
2 votes
1 answer
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 ...
Warriormon87's user avatar
39 votes
1 answer
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 ...
Doug B's user avatar
  • 483
13 votes
4 answers
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]. ...
chazman's user avatar
  • 133
1 vote
2 answers
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 ...
Moonie's user avatar
  • 13
5 votes
4 answers
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 ...
huginn's user avatar
  • 1,160
3 votes
1 answer
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 ...
Daniel's user avatar
  • 2,200
6 votes
3 answers
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 ...
Doug's user avatar
  • 81
4 votes
1 answer
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 ...
Hypergardens's user avatar
  • 2,244
3 votes
1 answer
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 ...
Hypergardens's user avatar
  • 2,244
5 votes
2 answers
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 ...
huginn's user avatar
  • 1,160
1 vote
1 answer
827 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 ...
enkryptor's user avatar
  • 65.4k
17 votes
6 answers
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 ...
Mindwin Remember Monica's user avatar