Skip to content

Instantly share code, notes, and snippets.

@terefang
Last active November 10, 2020 03:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save terefang/a4c883d7f9be80abf00796047b58d476 to your computer and use it in GitHub Desktop.
Save terefang/a4c883d7f9be80abf00796047b58d476 to your computer and use it in GitHub Desktop.
anydice roll 2dX H - L
function: rolldigits ROLL:s {
if 1@ROLL < 2@ROLL { result: 2@ROLL - 1@ROLL }
if 1@ROLL >= 2@ROLL { result: 1@ROLL - 2@ROLL }
}
output [rolldigits 2d10]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment