static void Main(string[] args) { CArray nums = new CArray(10); Random rnd = new Random(100); for (int i = 0; i < 10; i++) { nums.insert((int)(rnd.NextDouble() * 100)); } Console.WriteLine("before sorting: "); nums.displayElements(); Console.WriteLine("after sorting: "); nums.displayElements(); }