Expose randfn to global scope

This commit is contained in:
Yuri Roubinsky 2021-06-21 12:58:31 +03:00
parent 3c04522ece
commit a74acca858
9 changed files with 108 additions and 56 deletions

View file

@ -318,6 +318,7 @@ public:
static uint32_t rand();
static _ALWAYS_INLINE_ double randd() { return (double)rand() / (double)Math::RANDOM_32BIT_MAX; }
static _ALWAYS_INLINE_ float randf() { return (float)rand() / (float)Math::RANDOM_32BIT_MAX; }
static double randfn(double mean, double deviation);
static double random(double from, double to);
static float random(float from, float to);