How do I create and/or adjust landscapes programmatically?

I am interested in procedural landscape generation and am a bit confused about how to begin. Where should I look to learn how to create and generate landscapes programmatically? Note that I am not looking for procedural generation software (that’s the part I’m interested in writing myself).

Most of my google searching doesn’t come up with much. I can find a lot of resources on where to find tools to generate things in UE4, but not any tutorials on how to do it myself.

I remember hearing that one can’t do it in the shipped build. Don’t have any other info on a topic.