private static void CalculateMeasureStartAndInc(out float start, out float inc, out int count, float min, float max, int wantedCount, bool integersOnly) { if (integersOnly && GenMath.AnyIntegerInRange(min, max)) { int num = Mathf.CeilToInt(min); int num2 = Mathf.FloorToInt(max); start = num; inc = Mathf.CeilToInt((float)(num2 - num + 1) / (float)wantedCount); count = (num2 - num) / (int)inc + 1; } else { start = min; inc = (max - min) / (float)wantedCount; count = wantedCount; } }