static void Main(string[] args) { string[] str = new string[] { "135", "136", "137", "138", "139", "150", "151", "158", "159", "130", "131", "155", "156", "186", "133", "153", "181", "189" }; Random rnd = new Random(Guid.NewGuid().GetHashCode()); for (int i = 0; i < 50; i++) { Console.WriteLine(str[rnd.Next(str.Length)]); } Console.ReadKey(); }