private final static int delta = 0x9fa5 - 0x4e00 + 1; public char getRandomHan() { return (char)(0x4e00 + ran.nextInt(delta)); }}随机生成汉字的代码,希望能帮助到您。。