Skip to content

Sven65/Weighted-RNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A weighted RNG for nodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published