|
2 years ago | |
---|---|---|
README.md | 2 years ago | |
dice.js | 2 years ago | |
dice.min.js | 2 years ago |
Dice is a tiny JS object that makes it possible to roll cryptographically safe RPG style dice.
Examples:
Dice.d6();
Dice.d8.times(3);
Dice.roll("2d6 + 2d10 + 2");
Make a coin toss:
Dice.d2 = make_die(2);
Dice.d2();
🎲 Enjoy 🎲