Example #1
0
 public override T?GetInstance(Random random)
 {
     if (random.Next(nullProbabilityFactor) == 0)
     {
         return(default(T));
     }
     else
     {
         return(BaseGenerator.GetInstance(random));
     }
 }
 public override ulong GetInstance(Random random)
 {
     unchecked {
         return((ulong)BaseGenerator.GetInstance(random));
     }
 }
 public override ushort GetInstance(Random random)
 {
     unchecked {
         return((ushort)BaseGenerator.GetInstance(random));
     }
 }