This is a demo of using the diamond-square algorithm to generate a random fractal terrain.
You may refer to Paul Martz's great article for a detailed description on how the algorithm works.
The visualization is built with Three.js.