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

/spb25-coin/

    Package Sidebar

    Install

    npm i spb25-coin

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • cheoshn