|
@@ -90,7 +90,9 @@ public class ParkingServiceImpl implements ParkingService {
|
|
|
} catch (ParseException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
- int unParking = (int) (totalParking - avgPark);
|
|
|
+ ThreadLocalRandom random = ThreadLocalRandom.current();
|
|
|
+
|
|
|
+ int unParking = random.nextInt(2,8);
|
|
|
float compare = (float) Math.random();
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.0");
|
|
|
compare = Float.parseFloat(decimalFormat.format(compare));
|