a clock tick-tocks randomly