diff options
author | doy <doy@tozt.net> | 2008-12-18 06:28:50 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2008-12-18 06:28:50 -0500 |
commit | e60bc36aadc37f37113899dc7677b728a0197f65 (patch) | |
tree | ab461435078a2afed71e841838b056fbe651d4fc | |
parent | 93b4d267f8c7eab0811bb23c065a7e83de390e4c (diff) | |
download | bot-games-e60bc36aadc37f37113899dc7677b728a0197f65.tar.gz bot-games-e60bc36aadc37f37113899dc7677b728a0197f65.zip |
restrict dumb values for 24 in both places
-rw-r--r-- | lib/Bot/Games/Game/24.pm | 2 |
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; } } |