Пример #1
0
 public static int RandomNext(ref ulong seed, int bits)
 {
     seed = Utils.RandomNextSeed((ulong)seed);
     return((int)((long)seed >> (48 - bits & 63)));
 }
Пример #2
0
 public static int RandomNext(ref ulong seed, int bits)
 {
     seed = Utils.RandomNextSeed(seed);
     return((int)(seed >> 48 - bits));
 }