I've been trying to work out how to add a random number of the same object in a world class, so that each time refresh is hit a different number of the object is placed randomly around the world.
The random number has to be within set parameters, for example, it should place 1-10 objects in different places around the world whenever the world is loaded up or the refresh button is hit.
I also need to set the areas of the world it is allowed to be placed in, however I'm unsure how to do this because it's not as simple as just between x1 and x100 and y1 and y100 for example, as there is also an area in the centre of the world in which they cannot be placed, as well as the edge.
I know this is pretty vague, but I'm trying to avoid plagiarism, so really I'm looking for a solution that will work when I implement it myself adding the values myself.
Sorry if this is confusing, and thanks in advance for trying to help

