📜  在 C# 代码示例中通过数组随机化

📅  最后修改于: 2022-03-11 14:48:48.090000             🧑  作者: Mango

代码示例1
// answer coded by 'mdb' and edited later on by 'Caius Jard'

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