Add random length initial delay

At the moment, everything starts off in the 'on' state. Adding a random initial delay (between 0 and `$frequency` seconds) fixes this.