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]))
Gemfile:
=
installation:
=
Dépendances de Runtime (1):
bsearch
~> 1.5