public override int GetNumber() { while (PlayersNumbers.Contains(currentNumber)) { currentNumber++; } PlayersNumbers.Add(currentNumber); return(currentNumber++); }
public override int GetNumber() { int number = CustomRandom.GetNext(); while (PlayersNumbers.Contains(number)) { number = CustomRandom.GetNext(); } PlayersNumbers.Add(number); return(number); }
public override int GetNumber() { PlayersNumbers.Add(currentNumber); return(currentNumber++); }