package bool;
public class Test {
public static void main(String[] args) {
// 生成4位的验证码
String random = ""+Math.random();
String substring = random.substring(random.length()-4);
}
}
11-13
02-15
6251
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-28
02-16
681
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)