随机数生成

生成4位随机数
String four = String.valueOf((int) ((Math.random() * 9 + 1) * 1000));
原文地址:https://www.cnblogs.com/qinls/p/11195331.html