Mintoris Forum

Author Topic: two functions for rolling dice  (Read 1379 times)

jjarrell

  • Newbie
  • *
  • Posts: 1
two functions for rolling dice
« on: Jul 12, 2016, 07:46 PM »
Here are a couple of functions I created to roll dice and have the value returned.
The first function returns the sum of all die rolled and the second returns the sum of all die rolled dropping the lowest die.

Examples:

diceTotal=roll("4d6+1")

diceTotal=rollDropLow("4d6")