NOTE! This is an approximation of Perlin Noise! :-S
Noise is at the root of most procedurally generated content. However, just choosing random numbers alone is insufficient. Perlin noise adds local coherence over different scales to generate natural looking formations, which can be further processed into assets for all sorts of algorithms and games. This video shows 1D and 2D Perlin noise being created and displayed at the command prompt.
Source: https://github.com/OneLoneCoder/Javidx9/blob/master/ConsoleGameEngine/SmallerProjects/OneLoneCoder_PerlinNoise.cpp
Blog: http://www.onelonecoder.com
Twitter: @javidx9
Twitch: javidx9