dimanche 22 mai 2022

Can I make random.choice to run only 1 option until it is False? [closed]

I want to use random.choice statement to choose 1 option and run it until it is False, but I have no idea how can i do that or if it is possible.

code:

aa = movemouse(1534,792)
bbb = movemouse(1544,800)
cc = movemouse(1556,801)

while reset:
    if a != None:
        random.choice(aa,bbb,cc)
        escape()
    if a == None:
        kibord()
    elif b != None:
        rest()
        reset = False
        if b == None:
            reset = True



Aucun commentaire:

Enregistrer un commentaire