Files are now in a src directory and I'm using a src/meson.build and tests/meson.build to specify what to build.
This commit is contained in:
parent
4778677647
commit
1d4ae911b9
108 changed files with 94 additions and 83 deletions
13
src/rand.cpp
Normal file
13
src/rand.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "rand.hpp"
|
||||
|
||||
namespace Random {
|
||||
std::random_device RNG;
|
||||
std::mt19937 GENERATOR(RNG());
|
||||
|
||||
|
||||
std::chrono::milliseconds milliseconds(int from, int to) {
|
||||
int tick = Random::uniform_real(float(from), float(to));
|
||||
return std::chrono::milliseconds{tick};
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue