1.生成5位0~9的随机数SecureRandom random = new SecureRandom();String returnValue = "";int randomInt = 0;int range = 9;for(int i=0; i<5; i++ ){ randomInt = random.nextInt(range+1); returnValue = returnValue + randomInt;}System.out.print
java
2023-09-14
39 点赞
0 评论
59 浏览