uuid
UUID.randomUUID().toString(); //random // create random object Random ran = new Random(); // generating integer int nxt = ran.nextInt();