Skip to content

Commit

Permalink
fix: correct gcd argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotov committed Sep 6, 2023
1 parent 5d0d383 commit ec3253f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Games/GcdGame.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit ec3253f

Please sign in to comment.