summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bot/Games/Game/24.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm
index a95b1a3..8dcab4e 100644
--- a/lib/Bot/Games/Game/24.pm
+++ b/lib/Bot/Games/Game/24.pm
@@ -64,7 +64,7 @@ sub _generate_24 {
elsif ($op eq '*') {
$n2 = $val / $n1;
while ($n2 != int($n2)) {
- $n1 = int rand($val - 1);
+ $n1 = 2 + int rand($val - 3);
$n2 = $val / $n1;
}
}