I have a simple script, say to print an string. Now I would like to run this script 100 times, I would like to make sure the string would be printed at least 1 time, but not more than 3 times. Statistically, I would like this string to be printed for 1% ~ 3% times of totally running times.
May I know how can I make it in Python?
Thanks a lot!
Aucun commentaire:
Enregistrer un commentaire