Last active
December 17, 2020 20:19
-
-
Save adamcrosby/466cebd518449293129c061379362f55 to your computer and use it in GitHub Desktop.
Common first/last names
This file contains hidden or 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
#!/usr/bin/env python | |
import random | |
NUMBER_OF_USERS = 25 | |
PASSWORD_LENGTH = 18 | |
first_names=["James","Mary","John","Patricia","Robert","Jennifer","Michael","Linda","William","Elizabeth","David","Barbara","Richard","Susan","Joseph","Jessica","Thomas","Sarah","Charles","Karen","Christopher","Nancy","Daniel","Lisa","Matthew","Margaret","Anthony","Betty","Donald","Sandra","Mark","Ashley","Paul","Dorothy","Steven","Kimberly","Andrew","Emily","Kenneth","Donna","Joshua","Michelle","Kevin","Carol","Brian","Amanda","George","Melissa","Edward","Deborah","Ronald","Stephanie","Timothy","Rebecca","Jason","Laura","Jeffrey","Sharon","Ryan","Cynthia","Jacob","Kathleen","Gary","Amy","Nicholas","Shirley","Eric","Angela","Jonathan","Helen","Stephen","Anna","Larry","Brenda","Justin","Pamela","Scott","Nicole","Brandon","Samantha","Benjamin","Katherine","Samuel","Emma","Frank","Ruth","Gregory","Christine","Raymond","Catherine","Alexander","Debra","Patrick","Rachel","Jack","Carolyn","Dennis","Janet","Jerry","Virginia","Tyler","Maria","Aaron","Heather","Jose","Diane","Henry","Julie","Adam","Joyce","Douglas","Victoria","Nathan","Kelly","Peter","Christina","Zachary","Lauren","Kyle","Joan","Walter","Evelyn","Harold","Olivia","Jeremy","Judith","Ethan","Megan","Carl","Cheryl","Keith","Martha","Roger","Andrea","Gerald","Frances","Christian","Hannah","Terry","Jacqueline","Sean","Ann","Arthur","Gloria","Austin","Jean","Noah","Kathryn","Lawrence","Alice","Jesse","Teresa","Joe","Sara","Bryan","Janice","Billy","Doris","Jordan","Madison","Albert","Julia","Dylan","Grace","Bruce","Judy","Willie","Abigail","Gabriel","Marie","Alan","Denise","Juan","Beverly","Logan","Amber","Wayne","Theresa","Ralph","Marilyn","Roy","Danielle","Eugene","Diana","Randy","Brittany","Vincent","Natalie","Russell","Sophia","Louis","Rose","Philip","Isabella","Bobby","Alexis","Johnny","Kayla","Bradley","Charlotte"] | |
last_names = ["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen","Sanchez","Wright","King","Scott","Green","Baker","Adams","Nelson","Hill","Ramirez","Campbell","Mitchell","Roberts","Carter","Phillips","Evans","Turner","Torres","Parker","Collins","Edwards","Stewart","Flores","Morris","Nguyen","Murphy","Rivera","Cook","Rogers","Morgan","Peterson","Cooper","Reed","Bailey","Bell","Gomez","Kelly","Howard","Ward","Cox","Diaz","Richardson","Wood","Watson","Brooks","Bennett","Gray","James","Reyes","Cruz","Hughes","Price","Myers","Long","Foster","Sanders","Ross","Morales","Powell","Sullivan","Russell","Ortiz","Jenkins","Gutierrez","Perry","Butler","Barnes","Fisher"] | |
alpha_lower = "abcdefghijklmnopqrstuvwxyz" | |
alpha_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
numeric = "1234567890" | |
symbol = "!@#$%^&*()_-=+" | |
def create_random_user(): | |
fname = first_names[random.randint(0, len(first_names)-1)] | |
lname = last_names[random.randint(0, len(last_names)-1)] | |
userName = fname + lname | |
return userName | |
def password_generator(): | |
password = "" | |
for c in [alpha_lower, alpha_upper, numeric, symbol]: | |
for _ in range(0, PASSWORD_LENGTH): | |
password = password + c[random.randint(0,len(c)-1)] | |
return password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment