I'm working on a video game set in space, and I'd like my portrayal of the galaxy to be as scientifically accurate as is feasible. I've been looking into metallicity functions, but I can't make any sense of what I'm seeing, and I don't even know where to start on the subject of algorithms for star position and planet properties. To boil it down to a single statement, I need help finding an algorithm or series of algorithms that can procedurally generate the positions of 100,000 stars, their basic parameters, and a rough estimate of the mineral content of the planets that orbit them, giving results that are at least not blatantly impossible. I don't really care much about the simulation methods being right (as in, how these things actually came about) as much as them being simple and resembling real data. I realize this might be a tall order, and I don't expect to be spoon-fed, but I'm pretty much totally lost here. Can anyone point me in the right direction?