Comment changed

This commit is contained in:
Piotr Czajkowski
2022-01-01 14:18:25 +01:00
parent b1242d081c
commit 8cf778cb87

View File

@@ -69,7 +69,7 @@ namespace Buzzword
static string GeneratePhrase() static string GeneratePhrase()
{ {
// Indexing from 0, so had to decrease generated numbers // 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())])} " return $"{Capitalize(Words[(int)(13 * rnd.NextDouble())])} "
+ $"{Words[(int)(13 * rnd.NextDouble() + 13)]} " + $"{Words[(int)(13 * rnd.NextDouble() + 13)]} "
+ $"{Words[(int)(13 * rnd.NextDouble() + 26)]}"; + $"{Words[(int)(13 * rnd.NextDouble() + 26)]}";