public RandomContext(int? seed) { this.Random = current != null ? new Random(current.Random.Next()) : seed != null ? new Random(seed.Value) : DefaultSeed != null ? new Random(DefaultSeed.Value) : new Random(); this.parent = current; current = this; }
public RandomContext(int?seed) { this.Random = current != null ? new Random(current.Random.Next()) : seed != null ? new Random(seed.Value) : DefaultSeed != null ? new Random(DefaultSeed.Value) : new Random(); this.parent = current; current = this; }
public void Dispose() { current = current.parent; }