Here is an example of a very basic random world generator!
Arrow Keys To Move.
How it works:
Every 16 block it chooses a random height and then moves to that height with the ease function. then the top block is placed as grass the next few (by random) are dirt then the rest are stone all the way too a specified height.