16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00
This commit is contained in:
milek7
2019-01-11 23:15:03 +01:00
parent ead2123d8e
commit 3db9efd3f7
18 changed files with 135 additions and 40 deletions

View File

@@ -109,6 +109,12 @@ double Random(double a, double b)
return dis(Global.random_engine);
}
double LocalRandom(double a, double b)
{
std::uniform_real_distribution<> dis(a, b);
return dis(Global.local_random_engine);
}
bool FuzzyLogic(double Test, double Threshold, double Probability)
{
if ((Test > Threshold) && (!DebugModeFlag))