public static int RandomNext(ref ulong seed, int bits) { seed = Utils.RandomNextSeed((ulong)seed); return((int)((long)seed >> (48 - bits & 63))); }
public static int RandomNext(ref ulong seed, int bits) { seed = Utils.RandomNextSeed(seed); return((int)(seed >> 48 - bits)); }