using System.Collections; using System.Collections.Generic; using UnityEngine; public static class ListShuffle { public static void Shuffle(this IList list) { int n = list.Count; while (n > 1) { int k = Random.Range(0, n); n--; T value = list[k]; list[k] = list[n]; list[n] = value; } } }