mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-17 10:39:22 +00:00
commit
b7471489fa
22 changed files with 515 additions and 51 deletions
|
@ -114,6 +114,8 @@ public:
|
|||
// not too sure about all these...
|
||||
static uint16 GetRandomNumber(void)
|
||||
{ return myrand() & MYRAND_MAX; }
|
||||
static bool GetRandomTrueFalse(void)
|
||||
{ return GetRandomNumber() < MYRAND_MAX / 2; }
|
||||
// Probably don't want to ever reach high
|
||||
static float GetRandomNumberInRange(float low, float high)
|
||||
{ return low + (high - low)*(GetRandomNumber()/float(MYRAND_MAX + 1)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue