I've been writing a Ruby system that will allow the user, mainly, to find wormholes between any two given stars (and also decide which stocks to trade between them). Its main drawbacks at the moment, though, are that (1) those stars have to be manually entered in a database, and (2) the distances between them are just slightly off what the game calculates them as (especially since it's REALLY hard to estimate the Z co-ordinate of a system).
To this end, I've been looking at Jongware's [galaxy generation code](http://www.jongware.com/galaxy1.html
) and trying to translate it to Ruby, which would give me all the stars and their accurate positions. I know it's extremely old in internet terms - in fact it was posted closer to my teenage gaming years than to today - but I've been getting some very weird results, and I can't really understand the generation algorithm or find any other versions.
Can anyone - especially Jongware himself if he's still around - help with this?