diff --git a/src/RandomGenerator/RandomSentenceGenerator.cs b/src/RandomGenerator/RandomSentenceGenerator.cs index 1465588..8c28c79 100644 --- a/src/RandomGenerator/RandomSentenceGenerator.cs +++ b/src/RandomGenerator/RandomSentenceGenerator.cs @@ -126,6 +126,12 @@ public string Generate(int wordsCount) string.Concat(input[0].ToString().ToUpper(), input.AsSpan(1)) : partOfSpeechs[operation]()); + } + else + { + //add random word + words.Add(partOfSpeechs[partOfSpeechsTypes.Last()]()); + } count++;