I have been thinking about the quickest way to distribute 1200 asteroids with procedurally generated positions and sizes when needed, but I can't get my head around how to do this.
I've currently got a system that has asteroids that get primed for re-placement when they get a certain distance from the player. But, assuming I want them to be consistently in the same positions, how do I determine where a re-positioned asteroid should be placed next?
Edit
Based on the comment below, I've realised the issue I'm having is not how the coordinates are generated, but how they are chosen at run time. When an asteroid is primed for re-positioning, how do I determine which coordinates are within a given zone (ahead of the player, but at a distance where the re-spawned asteroid will go unnoticed at first) without having to iterate through a vast amount of coordinates?
I think I need to be able to quickly extract which pre-generated coordinates are in that spawning zone. How would I do that?
Or am I going about this all wrong?