From ec3253f59b496abfcd97e7631cbfcd124953ae8e Mon Sep 17 00:00:00 2001 From: gkdev Date: Thu, 7 Sep 2023 00:02:19 +0300 Subject: [PATCH] fix: correct gcd argument --- src/Games/GcdGame.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Games/GcdGame.php b/src/Games/GcdGame.php index 4e1fbcc..f6f5a36 100644 --- a/src/Games/GcdGame.php +++ b/src/Games/GcdGame.php @@ -14,9 +14,9 @@ function loader($module): array function handler(): array { - $firstNum = random_int(1, 10); - $secondNum = random_int(1, 20); - $expectedAnswer = gcd($firstNum, $firstNum); + $firstNum = random_int(1, 100); + $secondNum = random_int(1, 100); + $expectedAnswer = gcd($firstNum, $secondNum); $question = "$firstNum $secondNum"; return [$question, $expectedAnswer]; }