I know how to random number using java Random class.
This will random a number between 0-13 13 times;
 public static void main(String[] args) {
    int ctr = 13; 
    int randomNum = 0;
    while(ctr != 0) {
        Random r = new Random();
        randomNum = r.nextInt(13);
        ctr--;
        System.out.println(ctr +": " + randomNum);
    }
 }
Question
-I would like to random a number between 0-13 for 13 times
-If the first random number is e.g(5),then my second random number will random any number from 0-13 again EXCLUDING 5;
If the second random number is e.g(4),then my third random number will random any number from 0-13 again EXCLUDING 5 and 4; etc.. is there a way to do it?
 
     
     
     
     
     
    