I tried to make a 'random' text program with 2 possible outputs, randomization works but range() isn't working. I always make some stupid mistakes so don't go hard one me over some stupid small thing pls
import time
import pyautogui
import random
time.sleep(2)
for i in range(50):
if int(random.randint(1,2)) == 1:
pyautogui.typewrite('bruh1')
pyautogui.press('enter')
random.randint(1,2)
elif int(random.randint(1,2)) == 2:
pyautogui.typewrite('bruh2')
pyautogui.press('enter')
random.randint(1,2)
x = random.randint(1, 2)instead of trying to callx(), which shouldn't work?