How to set a time range in sleep and asyncio sleep with python

13 Views Asked by At

Somehow I can't find this on google how to set a time range in with sleep instead of a fixed time. I want to learn how to set a time range with await asyncio.sleep(xxx) and time.sleep(xxx)

I want to sleep between 100 and 10000 seconds. Is this possible only using sleep? If not how to do that

0

There are 0 best solutions below