Exemplo n.º 1
0
        public List <Satellite> CreateRandPlanetAndSat(int total, List <Planet> planets)
        {
            Satellite satellite = new Satellite();
            //satellites.Add(satellite);
            int name = 1;

            for (int i = 0; i < total; i++)
            {
                CountSat = random.Next(0, 4);
                satellite.CreateRandSat(CountSat, 0, satellites, name);
                InitData(name, CountSat, planets);
                name++;
            }
            return(satellites);
        }