-
-
Save spaco67/f61a361b24d975b1bfe865c8faefd335 to your computer and use it in GitHub Desktop.
A simple python script to generate random phone numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def random_with_N_digits(n): | |
range_start = 10**(n-1) | |
range_end = (10**n)-1 | |
return randint(range_start, range_end) | |
for tciNymbers in range(0,50000): | |
print('0912', random_with_N_digits(7)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment