lib/standard/facets/random.rb
# Delete a random key-value pair, returning the key.
#
#   a = {:one => 1, :two => 2, :three => 3}
#   a.rand_key!  #~> :two
#   a            #~> {:one => 1, :three => 3}
#
Delete a random key-value pair, returning the key.
Delete a random key - value pair returning the key .
def rand_key!
      k,v = rand_pair
      delete(k)
      return k
    end
def rand_key! k , v = rand_pair delete ( k ) return k end
Delete a random key-value pair, returning the key.
Delete a random key - value pair returning the key .