RubyGems.org

Hash#sample method is implemented with roulette wheel selection algorithm. Probability distribution is given by hash values.

installgem install roulette_wheel_selection
Authors

Beyond

843 total downloads 843 for this version
Owners

E6c4fa0f699bd230ff6ba15a35ac3947

Gemfile
gem 'roulette_wheel_selection', '~> 1.0.0'
Versions
  1. 1.0.0 August 2, 2012 (7 KB)
Development Dependencies
  1. rspec >= 0