Answer the question
In order to leave comments, you need to log in
How to do a certain action if a certain option drops out in the randomizer?
How to do a certain action if a certain option drops out in the randomizer?
import random
3_list = ['1','2','3']
6_list = [''4,''5,'6']
print (random.choice(3_list),random.choice(6_list))
Answer the question
In order to leave comments, you need to log in
import random
3_list = ['1','2','3']
if random.choice(3_list) == 2 or random.choice(3_list) == 3:
# your code here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question