This commit is contained in:
kun98
2022-08-17 00:00:09 +09:00
committed by finley
parent db3a2d2876
commit 23a6f95c18

View File

@@ -106,7 +106,7 @@ func (dict *SimpleDict) RandomDistinctKeys(limit int) []string {
result := make([]string, size) result := make([]string, size)
i := 0 i := 0
for k := range dict.m { for k := range dict.m {
if i == limit { if i == size {
break break
} }
result[i] = k result[i] = k