Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
using System; using System.Collections.Generic; class Program { static void Main() { IList<int> lst = new[] { 4, 6, 8, 1, 9, 0, 7 }; int num = lst[new Random().Next(lst.Count)]; Console.WriteLine(num); } } /* run: 9 */