Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/guided_randomness.rb
Instance Method Summary collapse
Instance Method Details
#get_rand(weights) ⇒ Object
6 7 8 |
# File 'lib/guided_randomness.rb', line 6 def get_rand(weights) GuidedRandomness.new(self, weights).sample.first end |