Generate a random number of planets