Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ext/array.rb
Instance Method Summary collapse
Instance Method Details
#rand ⇒ Object
2 3 4 |
# File 'lib/ext/array.rb', line 2 def rand self[Kernel.rand(length)] end |