spb14-coin

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i spb14-coin

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • antaranian