I would like plants to appear randomly during the game as a health thing for an animal (to help them survive). However, I put the code in the World Class where a random number is created and then checked to see if it is equal to 1. If it is then addPlant();
The problem is that this leads to an infinite loop which stops the world being generated. Where is the best place to put code like this that allows the world to generate random plants?
TIA
Kabads

