int id = (new Random((new Date()).getTime())).nextInt();
Random ran = (new Random((new Date()).getTime())); int id = ran.nextInt();
    private Integer findFreeHardTokenIssuerId(){      int id = (new Random((new Date()).getTime())).nextInt();      boolean foundfree = false;      while(!foundfree){        try{          if(id > 1)            hardtokenissuerhome.findByPrimaryKey(new Integer(id));          id++;        }catch(FinderException e){           foundfree = true;        }      }      return new Integer(id);    } // findFreeHardTokenIssuerId