예제 #1
0
파일: IRnd.cs 프로젝트: Vovanda/GAS
 public static int NextBoolInt(this IRnd rnd)
 {
     // x & 1 <=> x % 2
     return((int)(rnd.NextUInt() & 1));
 }
예제 #2
0
 public XORShiftRandom(IRnd lcg_rnd)
     : this(lcg_rnd.NextUInt(), lcg_rnd.NextUInt(), lcg_rnd.NextUInt(), lcg_rnd.NextUInt())
 {
 }