public bool GetNext() { if (resultsBeforeNextTrue <= 0) { resultsBeforeNextTrue = MinMax.RandomValue(); return(true); } resultsBeforeNextTrue--; return(false); }
public RandomChance(int min, int max) { MinMax = new BoundedInteger(min, max); resultsBeforeNextTrue = MinMax.RandomValue(); }