choosing a maximum randomly in the case of a tie?,random.shuffle(l)