Replaced sample1 with random.choice.