using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Selection
{
    //ATTENTION: The following code was adapted from Dr. McVey-Pankratz to solve my issue with 
    //              the Random Number Generator (RndNumGen)
    public static class RndNumGen
    {
        /************************DATA MEMBERS***************************/
        //NAME: random  
        //TYPE: Random
        //PURPOSE: The Random object 'random' is used to randomly generate an integer within a specified range
        private static readonly Random random = new Random();

        /************************FUNCTIONS*****************************/
        //FUNCTION: Next
        //PARAMETERS: minValue, maxValue
        //PURPOSE: 'Next' returns a randomly generated integer between 'minValue' and 'maxValue'
        public static int Next(int minValue, int maxValue)
        {
            return random.Next(minValue, maxValue);
        }
        //FUNCTION: Next
        //PARAMETERS: maxValue
        //PURPOSE: 'Next' returns a randomly generated interger between 0 and 'maxValue'
        public static int Next(int maxValue)
        {
            return random.Next(maxValue);
        }
    }
}
