mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-20 21:39:30 +00:00
More CCarCtrl
This commit is contained in:
parent
1fa2fe566c
commit
0303955de3
3 changed files with 84 additions and 2 deletions
|
@ -98,6 +98,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