Systems/clusters are first placed into a regular grid; then if the number of systems is below the minimum, a new position is calculated by displacing its current position along a normal curve number generator. Then the current system is compared against the other systems, if it is within a certain distance, the system is displaced. Then the systems are randomly displaced to the other side to improve sprawl. This is our best attempt to create the illusion of the distribution of stars in a galaxy, however it is still unnatural and does not model the Game Maker Studio Chapter Master's sector generator.
https://github.com/ChapterMasterRestoration/Chapter-Master-Restoration/blob/master/ChapterMaster/ChapterMaster/World/Sector.cs
Systems/clusters are first placed into a regular grid; then if the number of systems is below the minimum, a new position is calculated by displacing its current position along a normal curve number generator. Then the current system is compared against the other systems, if it is within a certain distance, the system is displaced. Then the systems are randomly displaced to the other side to improve sprawl. This is our best attempt to create the illusion of the distribution of stars in a galaxy, however it is still unnatural and does not model the Game Maker Studio Chapter Master's sector generator.
https://github.com/ChapterMasterRestoration/Chapter-Master-Restoration/blob/master/ChapterMaster/ChapterMaster/World/Sector.cs