10 digits

This commit is contained in:
2022-03-17 15:34:22 +01:00
parent 9b36bc9424
commit 5f9c915919
3 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -10,10 +10,10 @@ from utils.excel_reader import ExcelHelper
def get_random_id_number ()-> str: def get_random_id_number ()-> str:
# write_the_valid_profiles_to_excel() # write_the_valid_profiles_to_excel()
S = 7 # number of characters in the string. S = 8 # number of characters in the string.
# call random.choices() string module to find the string in Uppercase + numeric data. # call random.choices() string module to find the string in Uppercase + numeric data.
ran = ''.join(random.choices(string.digits, k = S)) ran = ''.join(random.choices(string.digits, k = S))
id_number = "94"+str(ran) id_number = "57"+str(ran)
print("The randomly generated string is : 94" + str(ran)) # print the random data print("The randomly generated string is : 94" + str(ran)) # print the random data
return id_number return id_number
Binary file not shown.