Quantcast
Channel: Function to calculate "Nd6 take highest 2, sort descending" probabilities in AnyDice - Role-playing Games Stack Exchange
Viewing all articles
Browse latest Browse all 4

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

$
0
0

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 5d6 (they roll more dice if the injury is worse), take the highest two, whereas the higher of the two is the tens digit and the other one is the ones digit. For example, if I roll: 5, 3, 2, 6, I pick the highest two, 5, 6; the higher one goes first, so the result is 65. So the possible values are: 1, 2, 3, 4, 5, 6, 11, 21, 22, 31, 32, 33, 41, 42, 43, 44, 51, 52, 53, 54, 55, 61, 62, 63, 64, 65, 66

In the table, 66 is of course worse for the player than a 1. I need to figure out however, how likely it is to roll for example 1-21, or 22-33 so I can assign the injuries' severity to those numbers. I'm fine as a first step with a function that only considers 2d6.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images