Create random filename string
import random
import string
#********************************************
#********************************************
#********** GENERATE RANDOM STRING **********
#********************************************
#********************************************
def generate_random_string(string_length):
letters = string.ascii_lowercase # choose from all lowercase letters
random_string = ''.join(random.choice(letters) for i in range(string_length))
return random_string
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.