private WeightedRandom(WeightAlgorithm algorithm) { _randomProvider = new SystemRandomProvider(); this.algorithm = algorithm; }
private WeightedRandom(AbstractRandomProvider provider, WeightAlgorithm algorithm) { _randomProvider = provider ?? throw new Exception("Random provider is not instantiated."); this.algorithm = algorithm; }
public WeightedRandom(WeightAlgorithm algorithm) { randomProvider = new SystemRandomProvider(); this.algorithm = algorithm; }