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

Gemfile:
= Copier Copié!

installation:
=

Versions:

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

Dépendances de Runtime (1):

bsearch ~> 1.5

Propriétaires:

Auteurs:

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

Total de contrôle SHA 256:

9deb5d477b110603e4f7c8e01b781f331b8e6294bdacbdbdfae83c35d3f6d63a

Total de téléchargements 14 892

Pour cette version 4 608

License:

aucune

Version de Ruby requise: None

Liens: