Here's the code I wrote for naming some ships. You'll need python 3.4 to run it.[/spoiler
import random
prefix=["Night", "Knife","Undying","Beacon","Fortitude","Paris","Red","Sand","Basking","Dragon","Phoenix","Storm","Hurricane","Valiant","Aggravation","Revenge","Fallen",
"Howling","Heart","Dusk","Eve","Morning","Morn","Dawn","Evening","Sky","Moon","Earth","Luna","Mars","Primus","Saturn","Jupiter","Saint","Fall","Steel","Iron",
"Hunter","Darkness","Lightbringer","Light","Light","Soul","Eye","Edge","Precipice","Fall","Empire","Imperial","Sovereign","Touch","Eviscerator","Bronze","Copper",
"False","Fate","Submission","Deference","Catalyst","Triad","Khan","Spring","Summer","Autumn","Viking","Greek","Spartan","Asgardian","Evisceration","Hope","Colony",
"Winter","Coming","Minutes","Hours","Seconds","Days","Day","Week","Weeks","Second", "First","Minute","Asgard","Emotionless","Laceration","Hellfire","War","Rain",
"Silence","Grave","Courtyard","Enterprise","Leviathan","Executor","Story","Silence","Phantom","Ghost","Wraith","Silent","Valley","Flag","Incinerator","Snow",
"Hill","Hilltop","Canyon","Fire","Heaven","Heavenly","Satan","Satanic","Hell","Hellish","Fire","Water","Metal","Saltwater","Salt","Freshwater","Fresh","Human",
"Venus","Venusian","Mercury","Ancestral","Gods","Damned","Spear","Sword","Shield","Hammer","Sol","Embrace","Sinking","Air","Planet","Systematic","Shock","Humanity",
"Ice","Field","Newton","Einstein","Mother","Father","Sister","Brother","Accolade","Companion","Kin","Kinship","Ship","Family","Invention","Duty","Clad",
"Forward","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Pillar","Column","Crystal","Diamond","Men","Future","Past","Infinity","Venator","Shikari","Monday","Tuesday",
"Wednesday","Thursday","Friday","Saturday","Sunday","Sabre","Gladius","Katana","Smoke","Deep","Purple","Titanic","Titanus","Leviathan","Behemoth","Odyysey",
"Explorer","Stars","Clouds","Nuclear","Disaster","Tidal","Intervention","Rifle","Gun","Corpsman","Pride","Guilt","Cloak","Dagger","Beacon","Fool","Gambit",
"Player","Game","Throne","Thrones","Feast","Gold","Golden","Silver","Oracle","Oculus","Ouroboros","Assassin","English","England","America","American","London",
"York","Oxford","Washington","Ohio","Nevada","Texas","California","Seattle","Manhattan","Berlin","Cairo","Atlantis","China","Chinese","Shanghai","Rich","Poor",
"Beijing","Kyoto","Tokyo","Nagasaki","Hiroshima","Exodus","Eden","Elysium","Olympus","Athens","Africa","Europe","European","African","Asia","Asian","Russia","Russian",
"Moscow","Stalingrad","Promethean","Prometheus","Titan","Europa","Io","Charon","Angelic","Angel","Lie","Liar","Demon","Pantheon","Grand","Despair","Theft",
"Mjolnir","Durandal","Odin","Thor","Loki","Neptune","Uranus","Shoot","Kill","Lion","Gate","Jaguar","Panther","Wolf","Sheep","Bat","Decadence","Enlightened",
"Ascension","Space","Primeval","Primordial","Avatar","Hammerhead","Battlefield","Mirror","Front","Back","Behind","Dying"]
middle= ["Of the","'s", " ","", "in", "in the","To the","To","For a","For","as","As the","Unto","is","amid the","a","and","or","under","over","beneath",
"among","on the"]
def multiple(d,prefix,middle):
for x in range (d):
a=len(prefix)-1
b=len(middle)-1
pre=random.randint (0,a)
mid=random.randint (0,b)
midd=random.randint (0,b)
suf=random.randint (0,a)
type=random.randint(1,100)
if type<=90:
if mid==1:
print ("Your ship is called : ", prefix
, middle[mid], " ", prefix[suf])
elif mid==2:
print ("Your ship is called : ", prefix, middle[mid], prefix[suf])
elif mid==3:
print ("Your ship is called : ", prefix, prefix[suf])
else:
print ("Your ship is called : ", prefix, " ", middle[mid], " ", prefix[suf])
else:
print ("Your ship is called : ",prefix)
while True:
print ("How many names do you want to generate?")
d=int(input())
multiple(d,prefix,middle)