npm.io
0.0.1-development • Published 9 years ago

rarely

Licence
MIT
Version
0.0.1-development
Deps
0
Vulns
0
Weekly
0

rarely

An Javascript Snipper for making Random things that you can control rarity

Example

let rr = new Rarely({ frequency : 1, rareEffeciency : 2 });
	rr.call((chest) => { console.log(`Wow, you got ${ chest} chest`); });
	rr.err((chest) => { console.log(`Oh, no, you not get the ${ chest } chest`); });
	rr.run('Super magical');

License

MIT-License

Keywords