0.0.5 • Published 6 years ago

gold-dice v0.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

GoldDice

the gold standard for provably fair dice

NPM Version Build Status

Install

npm install --save gold-dice

Examples

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());
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago