Make the recursion limiter on RandomVariabilityPercent return the proper value

This commit is contained in:
lutepickle 2022-07-07 19:09:06 -07:00
parent 6a8b023289
commit 862696eef1
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -445,7 +445,7 @@ namespace RJW_Menstruation
const float mean = 1.635f;
const float stddev = 0.9138f;
const float lambda = 0.234f;
if (recursion >= 10) return mean;
if (recursion >= 10) return mean / (28 * 2);
float variability = Rand.Gaussian(mean, stddev) - Mathf.Log(Rand.Value) / lambda;
variability /= 28 * 2; // Convert to percentage