src/ai/core/ai_base.hpp
branchnoai
changeset 9362 3aebc515446a
parent 9361 7bb2bd22b16e
child 9387 4255a0a2d272
--- a/src/ai/core/ai_base.hpp	Tue Mar 13 18:36:29 2007 +0000
+++ b/src/ai/core/ai_base.hpp	Tue Mar 13 18:43:10 2007 +0000
@@ -13,14 +13,22 @@
 	 * Get a random value.
 	 * @return A random value between 0 and MAX(uint32)
 	 */
+#if defined(RANDOM_DEBUG)
+	uint32 DoRandom(int line, const char *file);
+#else
 	uint32 Random();
+#endif
 
 	/**
 	 * Get a random value in a range.
 	 * @param max The maximum value it will return.
 	 * @return A random value between 0 .. max.
 	 */
-	uint32 RandomRange(uint max);
+#if defined(RANDOM_DEBUG)
+	uint DoRandomRange(uint max, int line, const char *file);
+#else
+	uint RandomRange(uint max);
+#endif
 
 	/**
 	 * Take a chance of 'out' out of 'max'.