class Array

Public Instance Methods

rand_el() click to toggle source
# File lib/rchoice/core_ext.rb, line 2
def rand_el
  i = rand(length)
  self[i]
end