Answer the question
In order to leave comments, you need to log in
How to make random variables not repeated?
def spam():
messages_test = int(messages)
time_test = int(time)
for i in range(messages_test):
result1 = random.choice(messages_list1)
result2 = result1
result3 = result2
result4 = result3
result5 = result4
result6 = result5
pwa.keyboard.send_keys (tag, with_spaces=True)
sleep(time_test/4)
pwa.keyboard.send_keys (result1, with_spaces=True)
sleep(time_test/4)
pwa.keyboard.send_keys ("{ENTER}")
sleep(time_test/2)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question