Random random = new Random();for(int i = 0; i < 20; i++) { System.out.print(random.nextInt(100));if((i + 1) % 5 == 0) { System.out.println();} else { System.out.print(",");} }