spb14-coin
v1.2.0
Published
Biased coin simulator
Downloads
5
Readme
Coin
Biased coin simulator
Example
const Coin = require('spb14-coin');
let config = new Map([
['Exo' , 40],
['Hopar', 60]
]);
let coin = new Coin(config);
die.get().then(console.log); // more likely 'Hopar'
Install
npm install spb14-coin
License
MIT License