0.0.5 • Published 5 years ago

gold-dice v0.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 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

5 years ago

0.0.4

5 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago