Are you able to set parameters for Math.random?
for (Node car : cars) 
    car.setTranslateX(car.getTranslateX() -  11); 
 if (Math.random() <= 0.06 ) {
    cars.add(spawnCar()); 
    cars.add(SpawnzCar());}
    checkState(); 
    }
I would like Math.random to return a number between 0.02 and 0.06
 
     
     
     
    