public static RandInt makeRandInt(int seed) { int i = 0; return((N) => { i++; var x = (uint)HashInt.hashInt(seed + i); // if (i < 101) UnityEngine.Debug.Log($"seed:{seed} i:{i} x:{x}"); return (int)(x % N); }); }
public static int randInt(int x, int seed, int index) { return(HashInt.hashInt(seed + index + 1) % x);; }