sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05115
[Question #170315]: How to set Random time between 0.3 secs to 0.8 secs
New question #170315 on Sikuli:
https://answers.launchpad.net/sikuli/+question/170315
import random
random.seed()
t = random.randint(0.3,0.8)
whiile True:
<tab>wait(t)
<tab>click(imgA,png)
<tab>hover(imgB.png)
Seems like the random.randint doesnt recognize miliseconds time because it came out with an error. I would prefer not to use random.random() though. So how can input the above timing without getting an error? would fraction it work? for example, 0.3 = 3/10 and 0.8 = 4/5 so t = random.randint(3/10,4/5).
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.