AE Expressions question - why isn't my code working?
Typo on line 2. It should be thisComp.layer("DotMaster").index not -index.

Also, while it's valid, the first parameter to the random function on second last line -randomTimeAmount makes me nervous. I'd recommend changing it to 0-randomTimeAmount. It's more explicit, and less prone to accidental typos.