【C#】 配列の中身ををシャッフルする
using System.Linq; int[] array = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int[] shuffledArray = ary.OrderBy(i => Guid.NewGuid()).ToArray();
using System.Linq; int[] array = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int[] shuffledArray = ary.OrderBy(i => Guid.NewGuid()).ToArray();