This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.
random_element()
Returns a random element from the array.
# File activesupport/lib/active_support/core_ext/array/random_access.rb, line 16 def random_element self[Kernel.rand(length)] end