Advertisement
731MY

Untitled

Jun 13th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.53 KB | None | 0 0
  1. import sys
  2. import random
  3.  
  4. Male    =   ['JAMES','JOHN','ROBERT','MICHAEL','WILLIAM','DAVID','RICHARD','CHARLES','JOSEPH','THOMAS','CHRISTOPHER','DANIEL','PAUL','MARK','DONALD','GEORGE','KENNETH','STEVEN','EDWARD','BRIAN','RONALD','ANTHONY','KEVIN','JASON']
  5.  
  6. Female  =   ['Sophia','Isabella','Emma','Olivia','Ava','Emily','Abigail','Madison','Mia','Chloe','Elizabeth','Ella','Addison','Natalie','Lily','Grace','Samantha','Avery','Sofia','Aubrey','Brooklyn','Lillian','Victoria','Evelyn']
  7.  
  8. Last    =   ['SMITH','JOHNSON','WILLIAMS','JONES','BROWN','DAVIS','MILLER','WILSON','MOORE','TAYLOR','ANDERSON','THOMAS','JACKSON','WHITE','HARRIS','MARTIN','THOMPSON','GARCIA','MARTINEZ','ROBINSON','CLARK','RODRIGUEZ','LEWIS']
  9.  
  10. Input = raw_input('Male Name ? (y/N)').lower();
  11.  
  12. MaleName = False if Input == '' or Input == 'n' else True
  13.  
  14. if MaleName :
  15.     for x in range(0,9):
  16.         print("%s %s %s") % (Male[random.randint(0,9)],Male[random.randint(0,9)],Last[random.randint(0,9)]);
  17.  
  18. if not MaleName :
  19.     Input = raw_input('Female Name ? (y/N)').lower();
  20.     FemaleName = False if Input == '' or Input == 'n' else True
  21.     if FemaleName :
  22.         for x in range(0,9):
  23.             print("%s %s %s") % (Female[random.randint(0,9)],Male[random.randint(0,9)],Last[random.randint(0,9)]);
  24.  
  25. if not MaleName and not FemaleName :
  26.     for x in range(0,9):
  27.         if random.randint(0,9)%2==0 :
  28.             print("%s %s %s") % (Male[random.randint(0,9)],Male[random.randint(0,9)],Last[random.randint(0,9)]);
  29.         else :
  30.             print("%s %s %s") % (Female[random.randint(0,9)],Male[random.randint(0,9)],Last[random.randint(0,9)]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement