Returns a random element from the array.
[Source]
# 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
[Validate]