1.0.7 • Published 5 years ago
simple-roll-dice v1.0.7
Simple Roll Dice
A simple dice rolling library
Install
npm i simple-roll-diceUsage
const DiceMod = require("simple-roll-dice");
let diceMod = new DiceMod.DiceMod();
console.log(diceMod.roll("2d6"));roll parameter, example (2d6)
- 2 - number of dice
- 6 - number of faces
Will return dice, and their sum.