equal
deleted
inserted
replaced
27 |
27 |
28 /** |
28 /** |
29 * Get a random value. |
29 * Get a random value. |
30 * @return a random value between 0 and MAX(uint32). |
30 * @return a random value between 0 and MAX(uint32). |
31 */ |
31 */ |
32 uint32 Rand(); |
32 static uint32 Rand(); |
33 |
33 |
34 /** |
34 /** |
35 * Get a random value in a range. |
35 * Get a random value in a range. |
36 * @param max the maximum value it will return. |
36 * @param max the maximum value it will return. |
37 * @return a random value between 0 .. max. |
37 * @return a random value between 0 .. max. |
38 */ |
38 */ |
39 uint RandRange(uint max); |
39 static uint RandRange(uint max); |
40 |
40 |
41 /** |
41 /** |
42 * Returns approximatelly 'out' times true when called 'max' times. |
42 * Returns approximatelly 'out' times true when called 'max' times. |
43 * After all, it is a random function. |
43 * After all, it is a random function. |
44 * @return true if the chance worked out. |
44 * @return true if the chance worked out. |
45 */ |
45 */ |
46 bool Chance(uint out, uint max); |
46 static bool Chance(uint out, uint max); |
47 }; |
47 }; |
48 |
48 |
49 #endif /* AI_BASE_HPP */ |
49 #endif /* AI_BASE_HPP */ |