Just wrote my own entity system to figure it out.
This commit is contained in:
parent
a3eaf78fd3
commit
cc4f83a1d1
8 changed files with 229 additions and 59 deletions
10
rand.cpp
10
rand.cpp
|
@ -1,10 +1,6 @@
|
|||
#include "rand.hpp"
|
||||
|
||||
std::random_device RNG;
|
||||
std::mt19937 GENERATOR(RNG());
|
||||
|
||||
int Random::rand_int(int from, int to) {
|
||||
std::uniform_int_distribution<int> rand(from, to);
|
||||
|
||||
return rand(GENERATOR);
|
||||
namespace Random {
|
||||
std::random_device RNG;
|
||||
std::mt19937 GENERATOR(RNG());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue