4 ms·JavaScript “maze generator” in a tweet1 points by bbotond 11y agon-gauge 11y agoeven shorter, change the loop to: for(i=4000;i--;) .