Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="source"></param>
 /// <param name="count"></param>
 /// <returns></returns>
 public static List <T> RandomTake <T>(this List <T> source, int count)
 {
     return(RandomUtils.RandomTake(source, count));
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="source"></param>
 /// <param name="count"></param>
 /// <returns></returns>
 public static T[] RandomTake <T>(this T[] source, int count)
 {
     return(RandomUtils.RandomTake(source, count));
 }