Class: Array

Inherits:
Object show all
Defined in:
lib/rchoice/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#rand_elObject



2
3
4
5
# File 'lib/rchoice/core_ext.rb', line 2

def rand_el
  i = rand(length)
  self[i]
end