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