public DfoRandomUtils(params double[] values) { _values = values; _oldRandom = SafeRandom.TestGenerator?.Value; SafeRandom.SetTestGenerator(this); }
public void Dispose() { if (_oldRandom != null) { SafeRandom.SetTestGenerator(_oldRandom); } else { SafeRandom.ClearTestGenerator(); } }