public static class ListUtils { public static void Shuffle<T>(this IList<T> list) { int count = list.Count; while (count > 1) { count--; int num2 = UnityEngine.Random.Range(0, count + 1); T local = list[num2]; list[num2] = list[count]; list[count] = local; } } }