Skip to content

Instantly share code, notes, and snippets.

@maxcountryman
Created December 17, 2010 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxcountryman/745727 to your computer and use it in GitHub Desktop.
Save maxcountryman/745727 to your computer and use it in GitHub Desktop.
Simple tabula recta generator, using Python's random module.
import string, random
print ' '+' '.join(string.ascii_uppercase) + '\n'+' +'+''.join(['-' for x in range(52)])+'\n'+''.join([chr(x)+' | '+' '.join([chr(random.randrange(33,127)) for x in range(26)])+'\n' for x in xrange(65,91)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment