[ create a new paste ] login | about

Link: http://codepad.org/KNtiKoA2    [ raw code | output | fork ]

Python, pasted on Feb 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Dumb Random Word Name Generator (Not even english) 
# Author: mofosyne

import re, random  # Import random generator, and regular expressions engine
random.seed()      # Generate a psudorandom engine that is seeded with a random seed
in_str = "cha ta ga the hen dra ou vich da sen eh tou na ra sen liz bou ism "    # This is the phoneme input strings to jumble together
phon_list = re.split(" ", in_str )    # Split the phoneme string into an array of individual phoneme

for e in range(0,100):      # Let's generate 100 random looking words/name !
    name = ""               # Let's initialise an empty name container
    w = random.randint(2,4) # Let's randomise the number of phonemes in a name
    for i in range(0,w):    # Let's LOOP over the number of phonemes we need for this name 
        z = random.randint(0,len(phon_list)-1)   # Let's pick a random number within the phoneme array
        name += phon_list[z]    # Let's append the selected phoneme to the name.
    print(name)     # Display the generated name and move to next name (or exit name generation loop).


Output:
lizbou
vichga
thetoutou
hen
outa
outoudracha
gasendra
thenagavich
ratousensen
dalizchadra
hensenga
ehvich
ehsencha
toudasen
henthe
touta
hendachana
bouvichou
thetachada
ra
toudahentou
narata
liztanacha
hengaismhen
bougata
sengada
ouhen
sendratou
draga
dratousentou
touta
dadra
toudraeh
chatou
draism
gahen
senlizga
senvich
drana
nasenlizliz
dachadrasen
touthe
dasenga
databouliz
drasennaeh
oura
nadata
ouism
toutou
vichdaismcha
ismliz
the
liztouvichthe
ismdrathehen
ismvich
liztou
lizhenda
senvichhenta
galiz
toudaliz
taliz
vichsen
outherana
ouismsenou
dasenehda
vichism
dadra
chasengaism
senhenism
senga
vichsen
ouvich
dra
drathenasen
drahen
chaou
nachadra
ehvichou
naliz
thegahen
boucha
touhen
senlizhen
dravichcha
dradra
bouvichrada
tougalizliz
chaou
gahenouhen
outhehen
bousenta
vichtheta
tahenlizda
bougalizna
bougana
ouliztou
oucha
henna
draism
senehsensen


Create a new paste based on this one


Comments: