知识点:Math.random( )的取值范围是[0.0,1.0),能取到0但是不会取到1
//生成随机三位数
(int)(Math.random() * 900 + 100);//[0.0,1.0) * 900 -> [0,899] + 100 -》 【100,999】
//随机生成小写字母 [0-25] + 97 -> 97 122
System
知识点:Math.random( )的取值范围是[0.0,1.0),能取到0但是不会取到1
//生成随机三位数
(int)(Math.random() * 900 + 100);//[0.0,1.0) * 900 -> [0,899] + 100 -》 【100,999】
//随机生成小写字母 [0-25] + 97 -> 97 122
System