Replies: 1 comment 5 replies
-
from urandom import randint
from pybricks.tools import wait
# Wait between 500 and 2000 milliseconds
wait(randint(500, 2000))
# Or if you need much longer, for example 3 -- 15 seconds
wait(randint(3, 15) * 1000) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI
Can we use a random seconds number with Pybricks
Many Thks
Beta Was this translation helpful? Give feedback.
All reactions