list 打乱排序

public IList<T> RandomSortList<T>(List<T> ListT)
{
Random random = new Random();
List<T> newList = new List<T>();
foreach (T item in ListT)
{
newList.Insert(random.Next(newList.Count + 1), item);
}
return newList;
}

posted @ 2018-03-16 13:50  卡玛兹  阅读(178)  评论(0编辑  收藏  举报
你好