Esempio n. 1
0
        public override int GetNumber()
        {
            while (PlayersNumbers.Contains(currentNumber))
            {
                currentNumber++;
            }
            PlayersNumbers.Add(currentNumber);

            return(currentNumber++);
        }
Esempio n. 2
0
        public override int GetNumber()
        {
            int number = CustomRandom.GetNext();

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