mirror of
https://github.com/fumiama/imago.git
synced 2026-06-20 17:40:24 +08:00
更新pick遍历阈值判断
This commit is contained in:
@@ -176,7 +176,7 @@ func Pick(exclude []string) string {
|
|||||||
return ""
|
return ""
|
||||||
} else if le == 0 {
|
} else if le == 0 {
|
||||||
return sum[rand.Intn(len(sum))]
|
return sum[rand.Intn(len(sum))]
|
||||||
} else if ls/le > 10 {
|
} else if (ls >> 2) > le {
|
||||||
name := sum[rand.Intn(len(sum))]
|
name := sum[rand.Intn(len(sum))]
|
||||||
for namein(name, exclude) {
|
for namein(name, exclude) {
|
||||||
name = sum[rand.Intn(len(sum))]
|
name = sum[rand.Intn(len(sum))]
|
||||||
|
|||||||
Reference in New Issue
Block a user