I got this error
line81:
time is:
startTime is set at the beginning of the scenario:
Terminal Window wrote...
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at greenfoot.Greenfoot.getRandomNumber(Greenfoot.java:145)
at Level.actL(Level.java:81)
at Level.act(Level.java:67)
at greenfoot.core.Simulation.actWorld(Simulation.java:571)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:506)
at greenfoot.core.Simulation.runContent(Simulation.java:213)
at greenfoot.core.Simulation.run(Simulation.java:203)if(Greenfoot.getRandomNumber((time) * 2) >= 10)
int time = (int)System.currentTimeMillis() - (int)startTime;
private double startTime = System.currentTimeMillis();