Class: Range
Instance Method Summary collapse
-
#rand ⇒ Object
(also: #random)
Returns random item from the array.
Instance Method Details
#rand ⇒ Object Also known as: random
Returns random item from the array
21 22 23 |
# File 'lib/rubyexts/random.rb', line 21 def rand self.min + Kernel.rand(self.max) end |