Clamp bell curve rolls to three deviations

This commit is contained in:
Heron
2026-05-11 19:29:10 -04:00
parent b7eb7556d2
commit ed15ffc9d1
2 changed files with 45 additions and 9 deletions
@@ -117,6 +117,21 @@ public class utils extends script.base_script
}
return am;
}
public static double clamp(double value, double min, double max)
{
if (value < min)
{
return min;
}
else if (value > max)
{
return max;
}
return value;
}
public static int randix(float[] fArray) throws InterruptedException
{
if (fArray.length > 1)