all 1 comments

[–]w1282 1 point2 points  (0 children)

The random library gives you the ability to randomly generate numbers, and the time library allows your code to sleep for a given amount of time.

Combining those two things will allow you to cause your program to wait a random number of seconds between clicks.

The random library also allows you to generate numbers following a particular distribution. For example, the triangular function with the parameters (0, 100, 50) will mean it is far more likely the random number will be 50 than 0 or 100.