PennController for IBEX › Forums › Support › Timing units › Reply To: Timing units
March 14, 2022 at 1:50 pm
#7878
Jeremy
Keymaster
Hi Larissa,
You can only pass up to two arguments to newTimer
: a string to name the element, and a number representing the duration. If you pass a third argument, it will simply be ignored
You can do newTimer("timer-D1", 1000+Math.round(1600*Math.random()))
if you want to get a random number between 1000 and 2600
Jeremy