public static int GetRngIndexDiff(ushort rngValue1, ushort rngValue2) { int index1 = GetRngIndex(rngValue1); int index2 = GetRngIndex(rngValue2); return(MoreMath.NonNegativeModulus(index2 - index1, RNG_COUNT)); }
public static ushort GetRngValue(int index) { index = MoreMath.NonNegativeModulus(index, RNG_COUNT); return(IndexToRNGDictionary[index]); }