The Wavefunction Collapse Algorithm explained very clearly | Robert Heaton
The Wavefunction Collapse Algorithm teaches your computer how to riff. The algorithm takes in an archetypical input, and produces procedurally-generated outputs that look like it.