cpp-console-game/random-utils/RandomUtils.hpp

14 lines
227 B
C++
Raw Permalink Normal View History

2024-07-04 21:57:11 +01:00
#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