2
\$\begingroup\$

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 "advantage" dice in a 2d10 over/under die rolling mechanic.) I've tried to look into programming it myself in Anydice but can't seem to get it to work.

Thanks!

\$\endgroup\$

1 Answer 1

5
\$\begingroup\$

If you want to subtract the lowest of the 3d10 from the highest, use this:

function: xx A:s xx {
result:1@A - 3@A
}
output [xx 3d10 xx]

Here's a link.

As the function expects a sequence, it evaluates for all possible rolls when it gets dice as input.

\$\endgroup\$
4
  • 1
    \$\begingroup\$ @LegendaryDude There should be no negative values. You subtract a smaller positive integer from a larger one. I understood that we should only roll once and use that and not mix two rolls. \$\endgroup\$
    – Szega
    Commented Mar 28, 2017 at 20:00
  • \$\begingroup\$ @LegendaryDude Yes it is how it works. I just did it! And yes, the question is not clear it seems. \$\endgroup\$
    – Szega
    Commented Mar 28, 2017 at 20:05
  • \$\begingroup\$ Oh sorry; you're right. It didn't occur to me that the lowest of set A could be higher than the highest of set B when set A and set B are two separate 3d10 rolls. Clearly I am not thinking correctly about the problem. I have deleted my answer and defer to you. :) \$\endgroup\$ Commented Mar 28, 2017 at 20:12
  • \$\begingroup\$ That is an impressive application of anydice. I hope you don't mind, I copied the function and made a link of it to add to the answer. \$\endgroup\$ Commented Mar 28, 2017 at 20:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .