(svn r13427) [NoAI] -Fix: RandRange(max) of course can never return max, but the highest value is max - 1 (tnx Yexo) noai
authortruebrain
Sun, 08 Jun 2008 23:10:34 +0000
branchnoai
changeset 10876 63ac5bfb1a84
parent 10875 f730e5098471
child 10877 bf7154962a83
(svn r13427) [NoAI] -Fix: RandRange(max) of course can never return max, but the highest value is max - 1 (tnx Yexo)
src/ai/api/ai_base.hpp
--- a/src/ai/api/ai_base.hpp	Sun Jun 08 22:38:29 2008 +0000
+++ b/src/ai/api/ai_base.hpp	Sun Jun 08 23:10:34 2008 +0000
@@ -35,8 +35,8 @@
 
 	/**
 	 * Get a random value in a range.
-	 * @param max The maximum value it will return.
-	 * @return A random value between 0 .. max.
+	 * @param max The first number this function will never return (the maximum it returns is max - 1).
+	 * @return A random value between 0 .. max - 1.
 	 */
 	static uint RandRange(uint max);