Skip to content

daxxog/gold-dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

the gold standard for provably fair dice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published