✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Mida kuvatakse konsoolis, kui rnd.Next(0, jokeArray.Length) genereerib 9?
string path = @"C:\Users\JV\data";string fileName = "chuck.txt";string[] lines = File.ReadAllLines(Path.Combine(path, fileName));Console.WriteLine(GetJoke(lines)); static string GetJoke(string[] jokeArray){ Random rnd = new Random(); return jokeArray[rnd.Next(0, jokeArray.Length)];}