function tick(){ if (count<1) {reset(); return;} if (remain==-1) remain = 10; show(remain);remain--; if (remain==-1){remain=myRandom(5,10);count--;} }