From 8cf778cb8706b835f7b70a364da2302adfe8bc4d Mon Sep 17 00:00:00 2001 From: Piotr Czajkowski Date: Sat, 1 Jan 2022 14:18:25 +0100 Subject: [PATCH] Comment changed --- 20_Buzzword/csharp/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/20_Buzzword/csharp/Program.cs b/20_Buzzword/csharp/Program.cs index b2dfa680..ca1ed750 100644 --- a/20_Buzzword/csharp/Program.cs +++ b/20_Buzzword/csharp/Program.cs @@ -69,7 +69,7 @@ namespace Buzzword static string GeneratePhrase() { // Indexing from 0, so had to decrease generated numbers - // modulo Phrases.Length added to not get out of bond + // NextDouble used to reflect original return $"{Capitalize(Words[(int)(13 * rnd.NextDouble())])} " + $"{Words[(int)(13 * rnd.NextDouble() + 13)]} " + $"{Words[(int)(13 * rnd.NextDouble() + 26)]}";