RubyGems Navigation menu

guided_randomness 0.1.2

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 (6KB)
  2. 0.1.3 - May 12, 2011 (5KB)
  3. 0.1.2 - May 12, 2011 (5KB)
  4. 0.1.1 - May 12, 2011 (5KB)

所有者:

作者:

  • Piotr Esse Szmielew

SHA 256チェックサム:

71c71f2356e9ad2098d898b278689d7725907234631d42e67f096c16f99f6433

累計ダウンロード数 14,907

このバージョンのみ 3,388

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: