How to Random python within 30s-60s

how to randomly time within 30s?

round.randint (300.60)?

Mar.17,2021

you mean random.randint (30,60) , this is fine.

there is another way to do this

a = 30
b = 60

n = a + random.random() * (b - a)

  

random.randint (30,60)

Menu