/// <summary> /// Returns a random item from the given IList /// </summary> /// <typeparam name="T"></typeparam> /// <param name="list">The list.</param> /// <returns></returns> public static T Random <T>(this IList <T> list) { return(list[RandomProvider.Get().Next(list.Count)]); }