jeudi 26 octobre 2017

How to run a function randomly in python?

I want to make my program run a few functions randomly. For example, if there's a function, I want it to run 3 times a minute, not at exact times or in a period. It could run at 10:10:20, 10:10:21, 10:10:59 or 10:11:01, 10:11:03, 10:11:49. How can it be done in Python? Does random module support this?




Aucun commentaire:

Enregistrer un commentaire