mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
Comment changed
This commit is contained in:
@@ -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)]}";
|
||||
|
||||
Reference in New Issue
Block a user