Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

rd dap da

import java.util.Random;
class Rextester{
public static void main(String args[])
    {
           random(   2   );
}

public static void random(int n){
Random rd = new Random();
char []cot = {'A','B','C','D','E'};
int i = 0;
while(i++ < n){
char x = cot[rd.nextInt(5)];
int y = rd.nextInt(5)+1;
System.out.println(""+x+y);
}
}
}
 run  | edit  | history  | help 0