提交roll日创建

This commit is contained in:
2026-07-19 15:42:42 +08:00
parent 7c07c9dcf9
commit 9d0693fe19
@@ -61,16 +61,16 @@ public class RandomUtils {
} }
/** /**
* 生成随机名称(中文或英文随机) * 生成随机名称(中文网名或正常英文名字随机)
* @param sex 性别:1=男,0=女 * @param sex 性别:1=男,0=女(影响英文名字性别)
* @return 随机中文英文名字 * @return 随机中文网名或正常英文名字
*/ */
public static String getRandomMixedName(int sex) { public static String getRandomMixedName(int sex) {
// 50% 概率生成英文名,50% 概率生成中文名 // 50% 概率生成正常英文名50% 概率生成中文
if (new Random().nextBoolean()) { if (new Random().nextBoolean()) {
return getRandomEnglishName(sex); return getRandomEnglishName(sex);
} else { } else {
return getRandomName(sex); return getRandomNetName();
} }
} }