You could try something equivalent to this:


import random
import time

def rand_str(i):
random.seed(time.time())
str1 = ""
for x in range(0,i):