Ejemplo n.º 1
0
 /// <summary>
 /// Shuffles an <see cref="IList{T}"/> in place using the specified <paramref name="random"/> instance.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="list">This <see cref="IList{T}"/>.</param>
 public static void Shuffle <T>(this IList <T> list, Random random)
 {
     Collections.Shuffle(list, random);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Shuffles an <see cref="IList{T}"/> in place using a new <see cref="Random"/> instance.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="list">This <see cref="IList{T}"/>.</param>
 public static void Shuffle <T>(this IList <T> list)
 {
     Collections.Shuffle(list, new Random());
 }