import random
import time


def sleep_range(min_s: float, max_s: float):
    time.sleep(random.uniform(min_s, max_s))


def cooldown(min_s: float, max_s: float):
    secs = random.uniform(min_s, max_s)
    print(f"[polite] cooldown {secs:.1f}s")
    time.sleep(secs)
