Choose the size of the random maze
Solve the maze

Canvas - Maze - sample 01 - Creating a random maze

Creating, solving 2D mazes and rendering them in 3D ‪#‎javascript‬ ‪#‎HTML5‬ ‪#‎CSS3‬
Our first step is to create an algorithm to make a nice 2D square maze and
allow the user to generate new ones with a new enter and exit for several sizes.
I have added an algorithm to solve the maze but that will be not useful next as our
goal will be to generate 3D renderings of the mazes whatever their size is.

More samples and useful functions here