cpp-console-game/random-utils/RandomUtils.hpp
2024-07-04 16:57:11 -04:00

14 lines
227 B
C++

#ifndef RANDOM_HPP
#define RANDOM_HPP
#include <cstdlib>
namespace RandomUtils
{
/**
* Generates a random number between min and max (inclusive).
*/
int rand(int min = 0, int max = RAND_MAX);
}
#endif // RANDOM_HPP