I want to roll 7d4, and drop the highest and the lowest results.

I know I can get the second highest with output 2@7d4, so I thought it would be something like output 2..6@7d4 but that isn't recognized.

How can I get the sum of the middle 5 from a roll of 7d4?


1 Answer 1


You almost had it. The correct syntax is:

output {2..6}@7d4

Also, reading the documentation can often be helpful. The link is in the sidebar on the left side of the AnyDice site. You'll find this particular syntax under Documentation → Introspection → Accessing, which describes the @ operator.

(Unfortunately, with the way the AnyDice site is implemented, I can't really link to the relevant documentation page directly. I mean, technically I can, kind of, but none of the navigation works.)

  • 7
    \$\begingroup\$ A more natural-language--if strictly less versatile--alternative is [middle 5 of 7d4]. \$\endgroup\$ Mar 14, 2023 at 22:27

You must log in to answer this question.

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