weighted-random-selection (npm): Library for randomly selecting from a list of items using your own weighting for how frequently each item is chosen.
Keywords: collections|arrays|randomness