def makeRandomMaze(self, dimension):
        """ Generate a random maze of size dimension x dimension """

        rows = []
        for x in range(dimension):
            row = []
            for y in range(dimension):
                row.append(random.randrange(2))
            random.shuffle(row)
            rows.append(row)

        return Maze(rows)
 Generate a random maze of size dimension x dimension 
recipes/Python/496884_Amaze__objectoriented_maze_generatorsolver/recipe-496884.py