- May 24, 2022
- Added support for numeric dice
- May 23, 2022
- project creation
Note: work-in-progress; only logs to the console right now.
- Pass an isohedral integer
x
todrop()
anx
-sided die.6
-> random[1-6]
5
->null
(not a valid die; not isohedral)
- Pass an
Array
of isohedral integersn
to roll and sum eachn
-sided die[4,6,10]
-> random[3-20]
[4,5,10]
-> random[2-14]
because5
is not valid
- Pass a string that matches rpg die notation to roll a set of like-sided dice. RegExp ->
/^(\d*)d(\d+)$/
2d6
-> random[2-12]
d4
-> random[1-4]
2dTwenty
->null