So, after toying around with Greenfoot for a while, i decided i want to make a game or program that generates a completely random terrain, which the user can then explore. How will i go about doing this? Right now i made a small program thats a bit like it, but generates a fixed amount of each terrain, i want to generate a random amount, but i only know of the method addObject( new object(), 0, 0); and i dont know how to run that method a random number of times... Thanks in advance!