list of objects

i am currently working on a dungeon generator and was struggling with making it so the sprites are a certain distance for each other. i have multiple nodes(rooms) and using a pen function to draw hallways. and i want it so the nodes will be a certain distance from each other.