J, 31 bytes = u:|:(32*26{.=&|/~i:25)-~97+i.26 Probably can be golfed down considerably. [Try it online here.](http://tryj.tk/)