randomize through array in C#

43

randomize through array in C# -

// answer coded by 'mdb' and edited later on by 'Caius Jard'

Random rnd = new Random();
string[] MyRandomArray = MyArray.OrderBy(x => rnd.Next()).ToArray();    

Comments

Submit
0 Comments