Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate random string values in python

# for your eyes only
import random
import string

def get_random_string(length):
    # choose from all lowercase letter
    letters = string.ascii_letters
    result_str = ''.join(random.choice(letters) for i in range(length))
    print("The generated random string : " + str(res))

get_random_string(8)
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #generate #random #string #values #python
ADD COMMENT
Topic
Name
1+3 =