While working on my Stellar System Generator program, I found several science and university sites that listed the percentages for the Spectral Class of stars. I averaged them out and converted them into integer values. To do so, due to the small number of O class stars, I had to use 10,000,000 stars as the base. With 10,000,000 stars, below lists the number of each spectral class.
Spectral
Class Number
M 7,654,172
K 1,211,452
G 760,912
F 300,360
A 60,072
B 13,023
O 9
WOW!! Out of 10,000,000 stars, only 9 would be O class stars! And 3 out of 4 stars will be M class!
However, as a GM you would still control what type of star you want for a system. I thought y'all might like to know what the actual probabilities were for each spectral class. The above will be accounted for in my SSG program.
rmfr