weighted-rng
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Weighted-RNG

A weighted RNG for nodeJS

NPM

Usage

To use Weighted-RNG, simply require and call it like so:

const genWeight = require("weighted-rng");
genWeight({
	"a": 0.4,
	"b": 0.4,
	"c": 0.2
})

Package Sidebar

Install

npm i weighted-rng

Weekly Downloads

0

Version

2.0.3

License

Apache 2.0

Unpacked Size

13.7 kB

Total Files

5

Last publish

Collaborators

  • mackan90096