Merge pull request #24828 from Calamander/patch-1

RandomPCG randf/randd functions typos fix
This commit is contained in:
Rémi Verschelde 2019-01-08 09:04:58 +01:00 committed by GitHub
commit d23bce3ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ public:
void randomize();
_FORCE_INLINE_ uint32_t rand() { return pcg32_random_r(&pcg); }
_FORCE_INLINE_ double randf() { return (double)rand() / (double)RANDOM_MAX; }
_FORCE_INLINE_ float randd() { return (float)rand() / (float)RANDOM_MAX; }
_FORCE_INLINE_ double randd() { return (double)rand() / (double)RANDOM_MAX; }
_FORCE_INLINE_ float randf() { return (float)rand() / (float)RANDOM_MAX; }
double random(double from, double to);
float random(float from, float to);