This commit is contained in:
aozhiwei 2024-04-15 17:16:37 +08:00
parent d8bcfe8104
commit 0725405c82

View File

@ -373,8 +373,8 @@ func (this *playerMgr) GetRecommendPlayers(excludeHums map[string]int32, outHums
return true
})
}
randLen := 0
if randLen < len(this.recommendHumans) {
randLen := 10
if randLen > len(this.recommendHumans) {
randLen = len(this.recommendHumans)
}
rand.Shuffle(randLen, func (i int, j int) {