提交roll日创建
This commit is contained in:
@@ -152,12 +152,9 @@ public class RandomUtils {
|
|||||||
+ NET_NAME_NOUN[random.nextInt(NET_NAME_NOUN.length)];
|
+ NET_NAME_NOUN[random.nextInt(NET_NAME_NOUN.length)];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// 约 40% 概率追加装饰符号或数字后缀,更贴近真实网名
|
// 约 20% 概率追加装饰符号,更贴近真实网名(不追加数字后缀)
|
||||||
int decorType = random.nextInt(5);
|
if (random.nextInt(5) == 0) {
|
||||||
if (decorType == 0) {
|
|
||||||
name += NET_NAME_DECOR[random.nextInt(NET_NAME_DECOR.length)];
|
name += NET_NAME_DECOR[random.nextInt(NET_NAME_DECOR.length)];
|
||||||
} else if (decorType == 1) {
|
|
||||||
name += random.nextInt(100);
|
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user