A simple closed polygonal curve generation algorithm

Viewed 881

I need an algorithm to generate a closed simple (no self-intersections) polygonal curve. It would make a perfect labyrinth for my game.

A rough example of what I need

Can you please point me to the correct keywords?

3 Answers
Related