weighted-pick
Version:
A library to pick random elements with weighted probability.
35 lines (34 loc) • 821 B
JSON
{
"name": "weighted-pick",
"version": "1.0.4",
"description": "A library to pick random elements with weighted probability.",
"main": "index.js",
"type": "module",
"scripts": {
"lint": "eslint --fix **/*.js",
"test": "vitest --run"
},
"author": "Taisia Heiko",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com:taiheiko/weighted-pick.git"
},
"devDependencies": {
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"unplugin-auto-import": "^19.3.0",
"vitest": "^3.2.4"
},
"keywords": [
"weighted",
"random",
"weighted-random",
"weighted-number",
"randomized",
"weighted-probability"
]
}