Hey, just a quick question about planetary system formation. I understand that from a cloud of gas and matter a star is formed, and also later planets that have a specific mass and orbit.

My question is, are there infinite numbers of ways sizes and orbits of planets can form?

Or is there a specific set of configurations that may occur for the planetary system to become stable? Say, given initial parameters there is a specific number of planets, on specific orbits that will be mostly likely to form?

Do you know any research or hints how I could learn more about that matter?