Use diamond-square algorithm to generate heightmaps.
github.com/fralonra/ds-heightmap
fralonra/ds-heightmap