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: 78,289 of 196,079
Downloads: 12,743

Daily

Ranking: 130,811 of 196,051
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,664,465,017bundler
81,393,380,379rake
291,010,274,160rspec

Owners

#GravatarHandle
1iconwilee