Add GetRandomFloat

add Get a random float value between min and max (both included)
This commit is contained in:
Jacek 2022-09-03 09:21:39 +02:00 committed by GitHub
parent 082920eb80
commit 462be00230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1033,6 +1033,7 @@ RLAPI double GetTime(void); // Get elapsed
// Misc. functions // Misc. functions
RLAPI int GetRandomValue(int min, int max); // Get a random value between min and max (both included) RLAPI int GetRandomValue(int min, int max); // Get a random value between min and max (both included)
RLAPI float GetRandomFloat(float min, float max); // Get a random float value between min and max (both included)
RLAPI void SetRandomSeed(unsigned int seed); // Set the seed for the random number generator RLAPI void SetRandomSeed(unsigned int seed); // Set the seed for the random number generator
RLAPI void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (filename extension defines format) RLAPI void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (filename extension defines format)
RLAPI void SetConfigFlags(unsigned int flags); // Setup init configuration flags (view FLAGS) RLAPI void SetConfigFlags(unsigned int flags); // Setup init configuration flags (view FLAGS)