Hi, levels are generated in the same way as a old game i really love, Berzerk.
Basically there are 4x2 fixed posts inside the level, from each post starts a wall that goes randomly in one of the 4 directions (N,S,W,E) and that's all! It's so simple and so functional