1 2 3 4 5 6
class Array # Returns a random element from the array. def rand self[Kernel.rand(length)] end end