Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ASSEMBLY

Generate random strings only with uppercase letters and digits in Python

import string
import random
def gen_random_string(leng):
    random_list=[]
    for i in range(leng):
        random_list.append(random.choice(string.ascii_uppercase + string.digits))
    return(''.join(random_list))
print(gen_random_string(9))<div class="open_grepper_editor" title="Edit & Save To Grepper"></div>
Source by www.codespeedy.com #
 
PREVIOUS NEXT
Tagged: #Generate #random #strings #uppercase #letters #digits #Python
ADD COMMENT
Topic
Name
2+9 =