How to create a random planet

Hi everyone,

I want to create a game which need to generate a planet with gravity, and a random terrain generation.
Parameters will be terrain’s color, atmosphere’s color, gravity’s intensity, etc…

My problem is that i don’t know how to generate a terrain spherical, large and on which one can walk.

Is it possible or it’s too much difficult ?