Sign in Sign up
rubygems

guided_randomness

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]))

Activity

Latest release
15y ago
Total releases
4
Cadence
~daily
Last 12 months
0

Details

First release
May 12, 2011
Releases
Version Released
0.1.4 patch
0.1.1 initial
0.1.3 patch
0.1.2 patch