//Заполнение коллекции рандомными элементами
 public MyCollection(int Count)
 {
     Count = ExceptionHandlingArray.TestSize(Count);
     arr   = new TranspSredstv[Count];
     for (int i = 0; i < Count; i++)
     {
         this.Add(RandElem.Rand());
     }
 }
        public MyCollections(int size_city)
        {
            size_city = ExceptionHandlingArray.TestSize(size_city);

            city     = new MyList <TranspSredstv>();
            terminal = new MyList <TranspSredstv>();

            for (int i = 0; i < size_city; i++)
            {
                TranspSredstv buf = RandElem.Rand();
                city.Add(buf);
                if (rand.Next(1, 3) == 2)
                {
                    terminal.Add(buf);
                }
            }
        }