weighted_sampler 1.1.1
Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights. You can pass an Array or a Hash with desired probabilities and use Module or Class API to pick samples. Please, see documentation in the repo https://gitlab.com/oleksiy/weighted_sampler