public static List<T> GetRandomList<T>(List<T> inputList){ //Copy to a array T[] copyArray = new T[inputList.Count]; inputList.CopyTo(copyArray); //Add range List<T> copyList = new List<T>(); copyList.AddRange(copyArray); //Set outputList and random List<T> output Read More
posted @ 2013-04-27 10:29 咸鱼公子 Views(203) Comments(0) Diggs(0) Edit