From aa0a6dff0dafe0f041ca17aa29f1c35250b4ab99 Mon Sep 17 00:00:00 2001 From: Lynxaa Date: Mon, 25 Aug 2014 09:08:38 +0800 Subject: [PATCH 1/2] Update Program.cs --- Test App 3 - Jarvis/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test App 3 - Jarvis/Program.cs b/Test App 3 - Jarvis/Program.cs index 5d892ab..587743c 100644 --- a/Test App 3 - Jarvis/Program.cs +++ b/Test App 3 - Jarvis/Program.cs @@ -78,7 +78,7 @@ static void Main(string[] args) if (currentCpuPercentage == 100) { // This is designed to prevent the speech speed from exceeding 5x normal - string cpuLoadVocalMessage = cpuMaxedOutMessages[rand.Next(5)]; + string cpuLoadVocalMessage = cpuMaxedOutMessages[rand.Next(cpuMaxedOutMessages.Size())]; if (isChromeOpenedAlready == false) { From f497ebef3855915acfb123bb3ab67cd142adba70 Mon Sep 17 00:00:00 2001 From: Lynxaa Date: Mon, 25 Aug 2014 09:14:34 +0800 Subject: [PATCH 2/2] Update Program.cs Found out that Count was the variable for the lists size. --- Test App 3 - Jarvis/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test App 3 - Jarvis/Program.cs b/Test App 3 - Jarvis/Program.cs index 587743c..9e0752c 100644 --- a/Test App 3 - Jarvis/Program.cs +++ b/Test App 3 - Jarvis/Program.cs @@ -78,7 +78,7 @@ static void Main(string[] args) if (currentCpuPercentage == 100) { // This is designed to prevent the speech speed from exceeding 5x normal - string cpuLoadVocalMessage = cpuMaxedOutMessages[rand.Next(cpuMaxedOutMessages.Size())]; + string cpuLoadVocalMessage = cpuMaxedOutMessages[rand.Next(cpuMaxedOutMessages.Count)]; if (isChromeOpenedAlready == false) {