New UI layout and UI improvements. Fixes #50
This commit is contained in:
@@ -24,10 +24,15 @@ namespace Random {
|
||||
RandGenerator& getRandGenerator()
|
||||
{
|
||||
static thread_local std::random_device rd;
|
||||
static thread_local std::mt19937 randGenerator(rd());
|
||||
static thread_local RandGenerator randGenerator(rd());
|
||||
|
||||
return randGenerator;
|
||||
}
|
||||
|
||||
RandGenerator createSeededGenerator(std::size_t seed)
|
||||
{
|
||||
return RandGenerator {seed};
|
||||
}
|
||||
|
||||
} // Random
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace Random {
|
||||
using RandGenerator = std::mt19937;
|
||||
RandGenerator& getRandGenerator();
|
||||
|
||||
RandGenerator createSeededGenerator(std::size_t seed);
|
||||
|
||||
template <typename T>
|
||||
T
|
||||
getRandom(T min, T max)
|
||||
|
||||
Reference in New Issue
Block a user