I hope this technique is useful or inspiring for some programmer out there. "random space filling curves"
First: draw a maze into a grid (using a recursive bactracker for this)
Each possible value drives into one specific direction.
Example: 2,6 and 14 always goes up/north
Let's jump into 3D!
Follow the track and scale up the Z value (go up!)
Two marble-tracks ready to print here--> drive.google.com/drive/folders/…