public String getlinkNo() {String linkNo &#61; "";// 用字符数组的方式随机String model &#61; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";char[] m &#61; model.toCharArray();for (int j &#61; 0; j <6; j&#43;&#43;) {char c &#61; m[(int) (Math.random() * 36)];// 保证六位随机数之间没有重复的if (linkNo.contains(String.valueOf(c))) {j--;continue;}linkNo &#61; linkNo &#43; c;}return linkNo;
}