1
2
3
4
import string
import random

print "".join(random.sample(string.letters+string.digits, 8))