diff options
| author | Ray <[email protected]> | 2023-11-03 20:21:43 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-11-03 20:21:43 +0100 |
| commit | 2d1b2119202d08245ca4d313b846a6d0a8b2139b (patch) | |
| tree | 644c1c2c055704fdbfb81735ea5976661408d8d3 /src/raylib.h | |
| parent | 5da0074fed50f3a63d3c47aa0f2e1fbdc9051059 (diff) | |
| download | raylib-2d1b2119202d08245ca4d313b846a6d0a8b2139b.tar.gz raylib-2d1b2119202d08245ca4d313b846a6d0a8b2139b.zip | |
ADDED: `LoadRandomSequence()`/`UnloadRandomSequence()`
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index c732d8ef..4a353a70 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1067,10 +1067,13 @@ RLAPI void SwapScreenBuffer(void); // Swap back b RLAPI void PollInputEvents(void); // Register all input events RLAPI void WaitTime(double seconds); // Wait for some time (halt program execution) -// Misc. functions +// Random values generation functions RLAPI void SetRandomSeed(unsigned int seed); // Set the seed for the random number generator RLAPI int GetRandomValue(int min, int max); // Get a random value between min and max (both included) +RLAPI int *LoadRandomSequence(unsigned int count, int min, int max); // Load random values sequence, no values repeated +RLAPI void UnloadRandomSequence(int *sequence); // Unload random values sequence +// Misc. functions 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 OpenURL(const char *url); // Open URL with default system browser (if available) |
