lib/more_math/ranking_common.rb
# Switches this instance to a randomly ranked instance.
Switches this instance to a randomly ranked instance.
Switches this instance to a randomly ranked instance .
def random!
      new_rank = rand(last + 1).to_i
      self.rank = new_rank
      self
    end
def random! new_rank = rand ( last + 1 ) . to_i self . rank = new_rank self end
Switches this instance to a randomly ranked instance.
Switches this instance to a randomly ranked instance .