randomize an array c# code example
Example 1: random value in array c#
Random random = new Random();
int value = random.Next(0, array.Length);
Console.Write(array[value]);
Example 2: 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();