A tiny lib for rolling cryptographically secure dice with JavaScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Patxi Pierce 384ddc63ca added examples 2 years ago
README.md added examples 2 years ago
dice.js Woohooo DICEgit add . 2 years ago
dice.min.js Woohooo DICEgit add . 2 years ago

README.md

DICE 🎲🎲

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 🎲