diff options
author | frosch <frosch@openttd.org> | 2010-04-17 11:49:25 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-17 11:49:25 +0000 |
commit | 184fa43df2e14c73162e641bc9bc83e403f069ed (patch) | |
tree | d24d525121ba0120bd172975ee2e0784035f7128 /bin/ai/regression/regression.nut | |
parent | cd20724d201b5b04c8dfac49b6b885ea988165ed (diff) | |
download | openttd-184fa43df2e14c73162e641bc9bc83e403f069ed.tar.xz |
(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits.
Diffstat (limited to 'bin/ai/regression/regression.nut')
-rw-r--r-- | bin/ai/regression/regression.nut | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index 5f835c528..8891ca090 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -192,9 +192,9 @@ function Regression::Base() print(" RandRange(2): " + AIBase.RandRange(2)); print(" RandRange(2): " + AIBase.RandRange(2)); print(" RandRange(2): " + AIBase.RandRange(2)); - print(" RandRange(9): " + AIBase.RandRange(9)); - print(" RandRange(9): " + AIBase.RandRange(9)); - print(" RandRange(9): " + AIBase.RandRange(9)); + print(" RandRange(1000000): " + AIBase.RandRange(1000000)); // 32 bit tests + print(" RandRange(1000000): " + AIBase.RandRange(1000000)); + print(" RandRange(1000000): " + AIBase.RandRange(1000000)); print(" Chance(1, 2): " + AIBase.Chance(1, 2)); print(" Chance(1, 2): " + AIBase.Chance(1, 2)); print(" Chance(1, 2): " + AIBase.Chance(1, 2)); |