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: 74,942 of 186,959
Downloads: 12,092

Daily

Ranking: 147,182 of 186,713
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,905,736,219bundler
101,128,098,871rake
27909,387,510rspec

Owners

#GravatarHandle
1iconwilee