blob: b7ee00742acaa2ed0e7c89ae00869409331f1e22 (
plain) (
tree)
|
|
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module Array #:nodoc:
module RandomAccess
# Return a random element from the array.
def rand
self[Kernel.rand(length)]
end
end
end
end
end
|