1.0.7 • Published 4 years ago
simple-roll-dice v1.0.7
Simple Roll Dice
A simple dice rolling library
Install
npm i simple-roll-dice
Usage
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.