Categories: None [Edit]

weighted_sampler

https://rubygems.org/gems/weighted_sampler
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

Total

Ranking: 77,322 of 192,352
Downloads: 12,515

Daily

Ranking: 94,123 of 192,323
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,362,122,268bundler
81,299,937,016rake
29973,275,866rspec

Owners

#GravatarHandle
1iconwilee