This is a very simple tclet. The source for Magnetic Poetry is 163 lines of code, just under 5000 bytes. And the random number generator, which is way overkill, is more than half of that.