From f27c68d0861659d77f4536382c7f41ae2316ab5f Mon Sep 17 00:00:00 2001 From: Zander Pittari Date: Wed, 10 Jan 2024 15:23:06 +1100 Subject: [PATCH] main.add-all-numbers.js change --- src/add-all-numbers/my-solutions/main.add-all-numbers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-all-numbers/my-solutions/main.add-all-numbers.js b/src/add-all-numbers/my-solutions/main.add-all-numbers.js index b68b02a..5573444 100644 --- a/src/add-all-numbers/my-solutions/main.add-all-numbers.js +++ b/src/add-all-numbers/my-solutions/main.add-all-numbers.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); var function_add_all_numbers_1 = require("./function.add-all-numbers"); var numberArray = []; var max = 100; -var min = 20; -for (var i = 0; i <= Math.floor(Math.random() * (max - min + 1)) + min; i++) { +var min = 50; +for (var i = 0; Math.floor(Math.random() * (max - min + 1)) + min; i++) { numberArray.push(Math.floor(Math.random() * (max - min + 1) + min)); } console.log(numberArray);