lib/garcon/core_ext/random.rb
# Deletes a random key-value pair and returns that pair.
#
# @example
#   a = {:one => 1, :two => 2, :three => 3}
#   a.rand_pair!  # => [:two, 2]
#   a             # => {:one => 1, :three => 3}
#
Deletes a random key-value pair and returns that pair.
Deletes a random key - value pair and returns that pair .
def rand_pair!
      k,v = rand_pair
      delete(k)
      return k,v
    end
def rand_pair! k , v = rand_pair delete ( k ) return k , v end
Deletes a random key-value pair and returns that pair.
Deletes a random key - value pair and returns that pair .
example
None