diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -44,6 +44,11 @@ uint32 InteractiveRandom() return _random_seeds[1][1] = ROR(s, 3); } +uint InteractiveRandomRange(uint max) +{ + return (uint16)InteractiveRandom() * max >> 16; +} + void InitPlayerRandoms() { int i; |