This applet generates a maze. Enter the number of rows and columns of maze cells that you want and click on Go.
Source code