function rand()      {          var now=new Date();          var num=(now.getSeconds())%3;          var num=num+1;          return num;      }