Skip to content

Instantly share code, notes, and snippets.

@dev4Fun
Created September 10, 2020 03:26
Show Gist options
  • Save dev4Fun/3d1498e34976b797f12d5fd114bb43b4 to your computer and use it in GitHub Desktop.
Save dev4Fun/3d1498e34976b797f12d5fd114bb43b4 to your computer and use it in GitHub Desktop.
import random
from time import sleep
def rand_wait_min(a=None, b=None):
a = a if not a else a * 60
b = b if not b else b * 60
rand_wait_sec(a, b)
def rand_wait_sec(min_v=2, max_v=3):
sleep(random.randint(min_v, max_v))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment