mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Maybe staying too close to original wasn't so good
This commit is contained in:
@@ -69,10 +69,9 @@ 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
|
||||||
// NextDouble used to reflect original
|
return $"{Capitalize(Words[rnd.Next(13)])} "
|
||||||
return $"{Capitalize(Words[(int)(13 * rnd.NextDouble())])} "
|
+ $"{Words[rnd.Next(13, 26)]} "
|
||||||
+ $"{Words[(int)(13 * rnd.NextDouble() + 13)]} "
|
+ $"{Words[rnd.Next(26, 39)]}";
|
||||||
+ $"{Words[(int)(13 * rnd.NextDouble() + 26)]}";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user