private void ShuffleList <T>(IList <T> list) { int n = list.Count; while (n > 1) { n--; int k = simpleRng.GetIntRange(0, n); T value = list[k]; list[k] = list[n]; list[n] = value; } }
private void ShuffleList <T>(IList <T> list) { int n = list.Count; while (n > 1) { n--; int k = simpleRng.GetIntRange(0, n); T value = list[k]; list[k] = list[n]; list[n] = value; } }