dscrtz
v0.1.2
Published
Generate random value from discrete distribution
Downloads
3
Readme
Dscrtz
Generate random value from discrete distribution
Install
npm i dscrtz
Use
const Discrete = require("dscrtz")
const distribution = new Discrete(["A", 11], ["B", 20], ["C", 15])
distribution.rand(Math.random())