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 return true
}) })
} }
randLen := 0 randLen := 10
if randLen < len(this.recommendHumans) { if randLen > len(this.recommendHumans) {
randLen = len(this.recommendHumans) randLen = len(this.recommendHumans)
} }
rand.Shuffle(randLen, func (i int, j int) { rand.Shuffle(randLen, func (i int, j int) {