摘要: JAVA中生成指定位数随机数的方法很多,下面列举几种比较常用的方法。 方法一、通过Math类 1 public static String getRandom1(int len) { 2 int rs = (int) ((Math.random() * 9 + 1) * Math.pow(10, l 阅读全文
posted @ 2019-05-31 17:36 PC君 阅读(46543) 评论(0) 推荐(1) 编辑