rand()
Return a random element from the array.
# File activesupport/lib/active_support/core_ext/array/random_access.rb, line 6 def rand self[Kernel.rand(length)] end