Generates a timer function that returns True
with some probability each period.
Parameters
n — int, required
The percentage probability with which to return
True
each period.n
must be between 0 and 100.
Return Value — func(int)
A timer function that takes the model time and returns a boolean.
Notes and Examples