diff --git a/shared/pubUtils/util.ts b/shared/pubUtils/util.ts index 707cc0a46..b268f2a61 100644 --- a/shared/pubUtils/util.ts +++ b/shared/pubUtils/util.ts @@ -276,7 +276,7 @@ export function getRandEelm(source: Array = [], cnt = 1): Array { while(1) { let rand = Math.floor(Math.random() * source.length); idxs.add(rand); - if (idxs.size == cnt) { + if (idxs.size >= cnt) { break; } }