Untitled

 avatar
unknown
csharp
3 years ago
239 B
6
Indexable
string lineToPrint = string.Empty;
            
for (int i = 0; i < 4; i++)
{
    int wordNumber = wordIndex.Next(0, allWords.Length);
    string word = allWords[wordNumber];
    lineToPrint += word + " ";
}

Console.WriteLine(lineToPrint)
Editor is loading...