can someone tell me why this doesn't work. I want to display randomly ten chemical elements, but it always displays the same elements. Thanks for help!
        var random = new Random();
        var list = new List<string> { "Hg" , "B", "H", "Mg" };
        int index = random.Next(list.Count);
        for (int i = 0; i < 10; i++) {
            Console.WriteLine(list[index]);
        }
 
     
    