aboutsummaryrefslogtreecommitdiff
path: root/src/modules/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/helpers')
-rw-r--r--src/modules/helpers/index.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts
index 37487247..4cf9ad38 100644
--- a/src/modules/helpers/index.ts
+++ b/src/modules/helpers/index.ts
@@ -484,9 +484,7 @@ export class HelpersModule {
let index: number;
while (i-- > min) {
- index = Math.floor(
- (i + 1) * this.faker.number.float({ min: 0, max: 0.99 })
- );
+ index = Math.floor((i + 1) * this.faker.number.float({ max: 0.99 }));
temp = arrayCopy[index];
arrayCopy[index] = arrayCopy[i];
arrayCopy[i] = temp;