This combines two things that are really cool: random numbers and bezier curves and roller coasters. No guesses for what the third is.
Basically, it generates a number of waypoints that it connects with bezier curves, and it ends up being an interesting shape. Sometimes, the roller coaster can’t make it all the way.