summary refs log tree commit diff
path: root/src/extensions/Random.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/extensions/Random.ts')
-rw-r--r--src/extensions/Random.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extensions/Random.ts b/src/extensions/Random.ts

index fe865891..8e08aae9 100644 --- a/src/extensions/Random.ts +++ b/src/extensions/Random.ts
@@ -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)]; }