Hellerick_Ferlibay

Generate random block-code

Oct 8th, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import random
  2. a = ()
  3. for c in range(10): a += (str(c),)
  4. for c in range(26): a += (chr(c+97),)
  5. d = {}
  6. for c in a: d[random.random()]=c
  7. randmap = list(d.keys())
  8. randmap.sort()
  9. s = ""
  10. for c in randmap: s += d[c]
  11. for c in range(len(s)): s = s[:c*2+1] + ' ' + s[c*2+1:]
  12. s = s[0:11]+'\n'+s[12:23]+'\n'+s[24:35]+'\n'+s[36:47]+'\n'+s[48:59]+'\n'+s[60:71]
Advertisement
Add Comment
Please, Sign In to add comment