Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
random.h
Go to the documentation of this file.
1
13#pragma once
14#include <stdlib.h>
15#include <time.h>
16#include <stdbool.h>
17
23void RandomInit();
24
31int RandInt(int min, int max);
32
39float RandFloat(float min, float max);
40
45bool RandBool();
int RandInt(int min, int max)
Generates a random integer between min and max (inclusive).
Definition random.c:34
void RandomInit()
Initializes the random number generator.
Definition random.c:20
bool RandBool()
Generates a random boolean value.
Definition random.c:59
float RandFloat(float min, float max)
Generates a random float between min and max.
Definition random.c:48