Maze generation algorithm
Maze generation algorithms are automated methods for the creation of mazes. == Graph theory based methods == A maze can be generated by starting with a predetermined arrangement of cells (most commonly a rectangular grid but other arrangements are possible) with wall sites between them.
Source: Wikipedia — Maze generation algorithm (CC BY-SA 4.0)