rendered paste body#!/usr/bin/env python#written by techwizrd <theninja@bluedevs.net#license is GPLv3#works with Python 2.4, 2.5, and 2.6#however, 2.6 throws warning about teh deperecated print statement#I really should make it compatible with the upcoming Python 3.0#but this is just a silly name generator I just wrote for funimport random, stringlcolors = ["red", "orange", "green", "blue", "light", "dark"]lages = ["old", "new", "neo"]ltrees = ["pine","oak", "wood","walnut", "tree"]lelements = ["fire", "earth", "water", "spark", "thunder", "cloud"]lmetals = ["iron", "steel"]labils = ["weak", "strong", "slow", "fast", "smart", "dumb", "glib", "good", "bad"]lanimals = ["fox", "mouse", "pig", "coww", "rat", "tiger", "horse", "drake", "dragon", "hen", "cock", "bull"]lplaces = ["glen", "peak"]lbodyparts = ["arm", "foot", "eye", "claw", "nail", "fur", "feather"]lnames = [lcolors, lages, ltrees, lelements, lmetals, labils, lanimals, lbodyparts, lplaces]farabic = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "qu", "r", "s", "y"]vowels = ["a", "e", "i", "o", "u", "y"]def nameSegPair(dict): return dict[random.randint(0, len(dict)-1)] + vowels[random.randint(0, len(vowels)-1)]fcombos = int(input("First Name Syllable Combinations: "))combos = int(input("Last Name Word Combinations : "))times = int(input("Number of Names to Generate : "))def lastNameSeg(): a = random.randint(0, len(lnames)-1) b = random.randint(0, len(lnames[a])-1) return lnames[a][b]for x in range(0, times): lastName = "" firstName = "" for y in range(0, combos): lastName += lastNameSeg() for z in range(0, fcombos): firstName += nameSegPair(farabic) print "Name ", x+1, ": ", string.capitalize(firstName), " ", string.capitalize(lastName)nameSegPair(farabic)