Sha256: 3b7af677cdba42caae20c398145595035f00e1689178514b9d2527d1142d7603
Contents?: true
Size: 352 Bytes
Versions: 4
Compression:
Stored size: 352 Bytes
Contents
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). Instalation: gem install guided_randomness Usage: require 'guided_randomness' [1,2,3].get_rand([0.5, 0.3, 0.2]) or require 'guided_randomness' [1,2,3].get_rand([4,12,9])
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guided_randomness-0.1.4 | README |
guided_randomness-0.1.3 | README |
guided_randomness-0.1.2 | README |
guided_randomness-0.1.1 | README |