I was working on another project and needed an algorithm that randomly generates mazes. Thus, I've created this algorithm using the "Pen" extension and a sprite with an empty costume. Click on "See Inside" for more details. [IMPORTANT: This algorithm isn't perfect as there is a very slim chance of the entrance being blocked off. When that happens, simply click the green flag again.]
This generator was created entirely by me. Feel free to use this generator in any of your projects as long as you give me credit.