Bạn thử này xem:
Code:int temp = 0; string[] _a = {"a","b","c","d","e"}; List<int> _ls = new List<int> (); Random _rd = new Random(); for (int i = 0; i < _a.Length; i++) { do { temp = _rd.Next(_a.Length); } while (_ls.IndexOf(temp) != -1); _ls.Add(temp); Console.Write(_a[temp] + "\t"); } Console.ReadKey();