if (RandomUtil.randomInt(10) > 2)
{
// 1.高频
}else if (RandomUtil.randomInt(10) > 3)
{
// 2
} else if (RandomUtil.nextBoolean())
{

}


int result = RandomUtil.randomInt(3);
switch (result)
{
case 0:
//搜索帮派
csGuildSearch();
break;
case 1:
//请求帮派列表和申请帮派
csGuildList();
break;
case 2:
//创建帮派
csGuildCreate(getClientObject().getActorID());
break;
default:
break;
}



int rankId = 0;
int[] keys = DictRankDetailData.getServerTypeKeys();
if (keys.length > 0)
{
int random1 = RandomUtil.randomInt(keys.length);
TIntArrayList records = DictRankDetailData.getRecordsByServerType(keys[random1]);
int randomRankIndex = RandomUtil.randomInt(records.size());
if (randomRankIndex > 0)
{
rankId = records.get(randomRankIndex);
}
}

相关文章:

  • 2022-01-16
  • 2022-03-02
  • 2021-12-09
  • 2021-06-04
  • 2021-12-13
  • 2021-10-26
  • 2022-01-12
  • 2021-08-31
猜你喜欢
  • 2022-02-21
  • 2021-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-02-19
  • 2021-10-23
相关资源
相似解决方案