Basically create a field of random position & random brightness stars within a shape defined by the gas cloud creation algorithm. Then do it again. And again. keep track of how many "stars" total are created. Once you get to an overall number of stars that you want, stop generating more, and go to gas cloud creation?
Do you mean creating the fields shape/size the way I do the cloud's overall shape? I don't think that will work, as it's very unpredictable.
It works like this:
Draw perlin noise (at a scale of 1). Threshhold it (so that 50% gray and up is one color, and everything else is another). Then pick a random pixel and use it as the target of a bucket fill (floodfill).
Inside that bucket filled region is where the cloud goes. The size of this region is unpredictable, due to the way the perlin noise works when you threshold it. Here's an example:
There are 3 possible regions that could be filled in. #1 is very large, taking up half the space, and borders 3 edges (requiring that the same perlin noise be used for neighboring regions). #2 is middle-sized and touches 2 edges, also requiring the same seed to be used for neighboring regions. #3 is the smallest, and touches 1 side, also requiring the same seed for neighboring regions.
It's possible for areas to be disconnected from the edges, but they're rather rare. It's also possible for them to be really tiny. And denser noise isn't any better.