/// <summary>
        /// Choose random index in the list of available numbers
        /// and pick the number placed by this index.
        /// </summary>
        /// <returns>Guessed number</returns>
        public override int GuessNumber()
        {
            var randomIndex = ConcurrentRandom.Generate(0, _numbersToGuess.Count - 1);

            lock (_numbersToGuess)
                return(_numbersToGuess[randomIndex]);
        }
 public override int GuessNumber()
 {
     return(ConcurrentRandom.Generate(_min, _max));
 }
Beispiel #3
0
 public Basket(int min, int max)
 {
     Weight = ConcurrentRandom.Generate(min, max);
 }