gold-dice

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gold-dice

Weekly Downloads

1

Version

0.0.5

License

Apache-2.0

Unpacked Size

4.06 kB

Total Files

3

Last publish

Collaborators

  • daxxog