Procedual Terrain

I know that I am going to get hate for this post (“oh why didn’t you search google?”) well don’t ask that question because I already have. I’ve been out of coding unity javascript for several months so please don’t hate me if I am a little slow.

Now that that is out of the way:
I would like to create a procedurally generated planet. And I want to do it from scratch. I know that I should use the new perlin function in unity, but I don’t know how. The end goal hopefully being something with a base ocean level, hills mountains and such. Any kind of help would be appreciated if you can offer it. Remember that I am a javascript programmer, so any resources that you find/provide (if you fell necessary) will be best in javascript. Thanks in advance!

(Sorry, I don’t know how to use perlin, but:) I would suggest storing many objects inside an array and at game start create a planet through script. That is the ‘base ocean’ would be the sphere, then you could have mountain objects and so on. It’s not a convenient way of generating a planet, but it’s the only way I could think of.