标签:builder stat one uil str new stringbu spl rand
public static String getSixNum() { String str = "0123456789"; StringBuilder sb = new StringBuilder(4); for (int i = 0; i < 6; i++) { char ch = str.charAt(new Random().nextInt(str.length())); sb.append(ch); } return sb.toString(); }
标签:builder stat one uil str new stringbu spl rand
原文地址:https://www.cnblogs.com/pxblog/p/10805321.html