grovvy生成随机汉字名字

StringBuilder sb = new StringBuilder();
for(int i = 0 ;i < 3; i++){
    sb.append((char) (0x4e00 + (int) (Math.random() * (0x9fa5 - 0x4e00 + 1))));            
}
vars.put("name",sb.toString());
原文地址:https://www.cnblogs.com/xiaodebing/p/9606298.html