RubyGems Navigation menu

guided_randomness 0.1.3

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:
= 複製 已複製

安裝:
=

版本列表:

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

擁有者:

作者:

  • Piotr Esse Szmielew

SHA 256 checksum:

ef481f9514c8376b826833fb117a2f0cbde605de20dd292bb181ccf4f516d871

總下載次數 14,876

這個版本 3,508

License:

Ruby 版本需求:

相關連結: