@Test public void randomCodeTest() { Random random = new Random(); for (int i = 0; i < 10000; i++) { int randomNum = random.nextInt(1000000); String randomCode = String.format("%06d", randomNum); System.out.println(randomCode); } }
2023-12-05 12:55:58
@Test public void randomCodeTest() { Random random = new Random(); for (int i = 0; i < 10000; i++) { int randomNum = random.nextInt(1000000); String randomCode = String.format("%06d", randomNum); System.out.println(randomCode); } }