Merge pull request #186 from Nick007J/master

more CCarCtrl
This commit is contained in:
aap
2019-08-11 22:15:31 +02:00
committed by GitHub
22 changed files with 515 additions and 51 deletions

View File

@ -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)); }