示例#1
0
        public void SetComputerProperties(int temperatureForTomorrow)
        {
            double randomCompPrice = GenerateRandom.GetRandom(10, 55);

            playerTwo.PricePerCup = (randomCompPrice / 100);
            playerTwo.CalculateCupsPerPitcher(temperatureForTomorrow);
            playerTwo.LemonsPerPitcher = (GenerateRandom.GetRandom(3, 7));
            playerTwo.SugarPerPitcher  = ((GenerateRandom.GetRandom(3, 7)));
        }
示例#2
0
 public int GenerateRandomTemperature(int minTemp = 45, int maxTemp = 106)
 {
     return(GenerateRandom.GetRandom(minTemp, maxTemp));
 }