diff options
author | Max Horn | 2008-09-22 20:55:27 +0000 |
---|---|---|
committer | Max Horn | 2008-09-22 20:55:27 +0000 |
commit | 939ba5294f5367c91e178a7b06db0266840f79f3 (patch) | |
tree | 2e1edd1e74f8a7b45dbac4bec3b789c181a6841b /common | |
parent | f8574c52f8ae48799241a8fb4e88d000b86efd65 (diff) | |
download | scummvm-rg350-939ba5294f5367c91e178a7b06db0266840f79f3.tar.gz scummvm-rg350-939ba5294f5367c91e178a7b06db0266840f79f3.tar.bz2 scummvm-rg350-939ba5294f5367c91e178a7b06db0266840f79f3.zip |
Fix comments for random() funcs (thanks to salty-horse for pointing this out)
svn-id: r34628
Diffstat (limited to 'common')
-rw-r--r-- | common/util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/util.h b/common/util.h index 32f07181c4..573004c437 100644 --- a/common/util.h +++ b/common/util.h @@ -106,20 +106,20 @@ public: /** * Generates a random unsigned integer in the interval [0, max]. * @param max the upper bound - * @return a random number in the interval [0, max]. + * @return a random number in the interval [0, max] */ uint getRandomNumber(uint max); /** - * Generates a random unsigned integer in the interval [0, 1]. + * Generates a random bit, i.e. either 0 or 1. * Identical to getRandomNumber(1), but faster, hopefully. - * @return a random number in the interval [0, max]. + * @return a random bit, either 0 or 1 */ uint getRandomBit(void); /** * Generates a random unsigned integer in the interval [min, max]. * @param min the lower bound * @param max the upper bound - * @return a random number in the interval [min, max]. + * @return a random number in the interval [min, max] */ uint getRandomNumberRng(uint min, uint max); }; |