import random names_string = input("Give me everybody's names, separated by a comma. ") names = names_string.split(", ") for num in range(0, len(names) * 2): print(random.choice(names))