Fix random string code

This commit is contained in:
Rory&
2026-06-16 17:27:33 +02:00
parent e97c1820b7
commit fa4ca953b8
+1 -1
View File
@@ -93,7 +93,7 @@ export class Random {
public static getString(choices: string, length: number) {
const _choices = choices.split("");
const result = new Array(length);
for (const i in result) {
for (let i = 0; i < length; i++) {
result[i] = _choices[Random.nextInt(0, _choices.length)];
}