randombyweights (npm): Returns the index based on the array weight probability.
Keywords: random|probabilitys