randombyweightsReturns the index based on the array weight probability.randomprobabilitys1.0.4 • Published 4 years ago