Exemplo n.º 1
0
        public static int GetRngIndexDiff(ushort rngValue1, ushort rngValue2)
        {
            int index1 = GetRngIndex(rngValue1);
            int index2 = GetRngIndex(rngValue2);

            return(MoreMath.NonNegativeModulus(index2 - index1, RNG_COUNT));
        }
Exemplo n.º 2
0
 public static ushort GetRngValue(int index)
 {
     index = MoreMath.NonNegativeModulus(index, RNG_COUNT);
     return(IndexToRNGDictionary[index]);
 }