16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 18:09:18 +02:00

Refactor LocalRandom()

This commit is contained in:
docentYT
2026-05-01 13:17:05 +02:00
parent e1d8c08915
commit 614a7f51a5

View File

@@ -135,8 +135,8 @@ std::string generate_uuid_v4()
double LocalRandom(double a, double b)
{
uint32_t val = Global.local_random_engine();
return interpolate(a, b, (double)val / Global.random_engine.max());
std::uniform_real_distribution<double> dist(a, b);
return dist(Global.local_random_engine);
}
bool FuzzyLogic(double Test, double Threshold, double Probability)