def argmax_random_tie(seq, func):
 return random.choice(argmax_list(seq, func))

def argmax_random_tie ( seq , func ) : return random . choice ( argmax_list ( seq , func ) )
return an element with highest func score; break ties at random .