Example #1
0
 public void Dispose()
 {
     Rng.Deterministic();
     semaphore.Release();
 }
Example #2
0
 public static T Decide <T>(T A, T B, float chanceA = 0.5f)
 {
     return(Rng.B(chanceA) ? A : B);
 }
Example #3
0
 private LockedUnboundRng(int seed)
 {
     semaphore.Wait();
     Rng.Unbound(seed);
 }