1.0.0 • Published 7 years ago
spb25-coin v1.0.0
Coin
Biased coin simulator
Example
const Coin = require('spb25-coin');
let config = new Map(
[ ['Exo' , 40]
, ['Hopar', 60]
]);
let coin = new Coin(config);
coin.derive().then(console.log); // more likely 'Hopar'
Install
npm install spb25-coin
License
MIT License
1.0.0
7 years ago