Methods
Public Instance methods
rand()

Returns a random element from the array.

   # File vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb, line 6
6:         def rand
7:           self[Kernel.rand(length)]
8:         end