R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Random.cpp
Go to the documentation of this file.
1#include "Random.hpp"
2#include <random>
3
4std::random_device rd;
5
6int randint(int min, int max)
7{
8 std::mt19937 gen(rd());
9 std::uniform_int_distribution<> distr(min, max);
10 return distr(gen);
11}
std::random_device rd
Definition Random.cpp:4
int randint(int min, int max)
Function to generate a random integer.
Definition Random.cpp:6