i meant to make a code that spawned a random number of worms between 10 and 20, however each time there are exactly 20 worms. How do I change this?
Thanks!
for (int item=0; item<20; item++) addObject (new Worm(), (Greenfoot.getRandomNumber(getWidth())), (Greenfoot.getRandomNumber(getHeight())));