import random what = ['install','event_1'] i = random.choice(range(2)) print(what[i])