21 #ifndef RANDOMGENERATOR_H
22 #define RANDOMGENERATOR_H
24 #include "Utils/Pimpl.h"
56 static int getRandomNumber(
int min,
int max);
57 static std::mt19937 getGenerator();
64 template<
class Container>
65 void shuffle(Container& container)
67 std::shuffle(container.begin(), container.end(), RandomGenerator::getGenerator());
The RandomGenerator class.
Definition: RandomGenerator.h:33
void updateSeed()
create new seed
int getNumber(int min, int max)
get a random number
Helper functions.
Definition: GenreView.h:36