public void step() { rest(); road.updateLights(); road.pushCars(); if (random.nextInt(10) < 9) { road.addCar(); } else { int exitNum = randomRange(1, road.getExits().length - 1); road.addCar(road.getExits()[exitNum]); } // road.addCar(); road.print(); }