code: def add_and_shuffle(self, peer):
          
          self.push_peer(peer)
  
          r = random.randint(0, self.size() - 1)
          self.swap_order(peer.index, r)
docs: Push a new peer into the heap and shuffle the heap