Merge branch 'master' of bitbucket.org:panleicim/appointement_modem_pool
This commit is contained in:
Binary file not shown.
@@ -3,8 +3,16 @@ import string
|
|||||||
|
|
||||||
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T','1','2','3','4','5','6','7','8','9']
|
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T','1','2','3','4','5','6','7','8','9']
|
||||||
|
|
||||||
|
|
||||||
def get_random_id_number() -> str:
|
def get_random_id_number() -> str:
|
||||||
|
# write_the_valid_profiles_to_excel()
|
||||||
|
S = 8 # number of characters in the string.
|
||||||
|
# call random.choices() string module to find the string in Uppercase + numeric data.
|
||||||
|
ran = ''.join(random.choices(string.digits, k=S))
|
||||||
|
id_number = "57" + str(ran)
|
||||||
|
# print("The randomly generated string is : 94" + str(ran)) # print the random data
|
||||||
|
return id_number
|
||||||
|
|
||||||
|
def get_random_passport_id_number() -> str:
|
||||||
# write_the_valid_profiles_to_excel()
|
# write_the_valid_profiles_to_excel()
|
||||||
S = 7 # number of characters in the string.
|
S = 7 # 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.
|
||||||
@@ -15,5 +23,7 @@ def get_random_id_number() -> str:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
for i in range(1,200):
|
# for i in range(1,200):
|
||||||
|
# print(get_random_id_number())
|
||||||
|
for i in range(1,570):
|
||||||
print(get_random_id_number())
|
print(get_random_id_number())
|
||||||
Reference in New Issue
Block a user