Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate a random string with lowercase uppercase and numbers

import random
import string
 
## Length of the string
length = 12                     
 
lower = string.ascii_lowercase
upper = string.ascii_uppercase
num = string.digits
symbols = string.punctuation
 
all = lower + upper + num + symbols
 
temp = random.sample(all,length)
 
randstr = "".join(temp)
 
print(randstr)
Source by cloudaffaire.com #
 
PREVIOUS NEXT
Tagged: #generate #random #string #lowercase #uppercase #numbers
ADD COMMENT
Topic
Name
4+5 =