module.exports.random_chinese = function (length) {
let start = "4E00";
let end = "9FA5";
let str = "";
let max = parseInt(end, 16) - parseInt(start, 16);
for (let i = 0; i < length; i++) {
let random = (Math.floor(Math.random() * max) + parseInt(start, 16)).toString(16);
str = unescape(`%u${random}`) + str
}
return str;
}
length参数代表汉字个数