RubyGems Navigation menu

guided_randomness 0.1.4

Simple gem for Ruby which extends Array class, and gave possibility to pick element from it at random, however with certain probability (probability is given for each element). Adds the get_rand function to array class, which take array of chances as arguments (for example [1,2,3].get_rand([3,4,5]))

Versions:

  1. 0.1.4 - May 13, 2011 (6 KB)
  2. 0.1.3 - May 12, 2011 (5 KB)
  3. 0.1.2 - May 12, 2011 (5 KB)
  4. 0.1.1 - May 12, 2011 (5 KB)

Runtime Dependencies:

Authors:

  • Piotr Esse Szmielew, Radosław Bułat, Robert Pankowecki

Owners:

08737c7bb9ddaa840367b4dc6dc71bda

Total downloads 5,031

For this version 1,393

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'guided_randomness', '~> 0.1.4' = Copy to clipboard Copied!

install:
gem install guided_randomness = Copy to clipboard Copied!

Links: