Made filling the collection with random elements. The question is how to add letters to the random? And set the length of the element?
static void Main(string[] args) { Console.Write("Введит количество элементов коллекции: "); int i = Int32.Parse(Console.ReadLine()); ArrayList list = NewCollection(i); WriteMyCollection(list); Console.ReadLine(); } public static ArrayList NewCollection(int i) { Random rand = new Random(); ArrayList arr = new ArrayList(); for (int j = 0; j < i; j++) arr.Add(rand.Next()); return arr; } public static void WriteMyCollection(ArrayList arr) { foreach (int a in arr) Console.Write("{0}\t", a); Console.WriteLine("\n"); }