spb25-coin

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i spb25-coin

Weekly Downloads

11

Version

1.0.0

License

MIT

Last publish

Collaborators

  • cheoshn