Merge pull request #186 from Nick007J/master

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

No files matched your search

+2
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)); }