js生成随即字符串 /* *js生成随即字符串原来如此简单 *toString() radix argument must be between 2 and 36 */ function uuid() { return Math.random().toString(36).substring(3, 8) } //7rh32…
这是另一种用UUID生成随机字符串的方法. public class RandomGenerator{ private int length; public void setLength(int length) { this.length = length; } public RandomGenerator(int length){ this.length=length; } public RandomGenerator(){ this.length=32; } public String ge…