Question d’entretien chez NiCE

given an array list with songs shuffle them

Réponse à la question d'entretien

Utilisateur anonyme

20 juil. 2021

Random rng = new Random(); var shufflesongs = songs.OrderBy(o => rng.Next()).ToList(); Console.WriteLine("**********************After shuffle***********************************"); foreach (var song in shufflesongs) { Console.WriteLine(song); }