GoldDice the gold standard for provably fair dice Install npm install --save gold-dice Examples var GoldDice = require('gold-dice'), dice = new GoldDice(); //two sides, one rollconsole.log(dice.roll(2)); //six sides, ten rollsconsole.log(dice.roll(6, 10)); //the state of the dice, save this in a database or whereverconsole.log(dice.toString());