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
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    3
  • 2.0.2
    0
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i weighted-rng

Weekly Downloads

3

Version

2.0.3

License

Apache 2.0

Unpacked Size

13.7 kB

Total Files

5

Last publish

Collaborators

  • mackan90096