随机数生成

生成4位随机数
String four = String.valueOf((int) ((Math.random() * 9 + 1) * 1000));
posted @ 2019-07-16 15:45  cloud_shi  阅读(125)  评论(0)    收藏  举报