droll
droll copied to clipboard
A dice rolling library that uses standard dice notation
added quick explanations for each dice roll in the DrollResult.prototype.toString function as well as examples of valid rolls for Droll.validate.
Notation such as "D6MIN3" doesn't seem to work with droll. Is it supposed to?
Problem: Math.random produces uniformly distributed numbers within the range of (0, 1], but trying to map those values integer range with `Math.floor(Math.random() * pieces.numSides)` leads to slightly biased results. Solution:...
droll 4dF -> `Invalid Formula` As per https://en.wikipedia.org/wiki/Dice_notation#Dice_pools