From 671631b0efa84ec4ff17827c7263a261de2d3fa0 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Dec 2022 09:12:29 +0100 Subject: feat(number)!: change float default params (#1642) --- src/modules/helpers/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/helpers') 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; -- cgit v1.2.3