public void InsRandDate(int count) // int count 갯수만큼 정보가 나옴. { for (int i = 0; i < count; i++) { listCar.Add(new Car(rand.getModel(), rand.getColor(), rand.getCompany(), rand.getPrice())); } }
public void insRandData(int count) { for (int i = 0; i < count; i++) { listCar.Add(new Car( rand.getModel(), rand.getColor(), rand.getCompany(), rand.getPrice())); } }