millis with random switching question

Exactly.