I have an ArrayList, and I need to be able to click a button and then randomly pick out a string from that list and display it in a messagebox.
How would I go about
Why not[2]:
public static T GetRandom(this List list) { return list[(int)(DateTime.Now.Ticks%list.Count)]; }