Took me about 3 minutes, was bored.
Code:
import threading
import random
import string
"""Created by: Saibal"""
words = []
class First_Chars ( threading.Thread ):
def run ( self ):
global words
letters = "abcdefghijklmnopqrstuvwxyz"
numbers = "12345678910"
word1, word2, word3 = [random.choice(letters) + random.choice(numbers) for i in xrange(3)]
the_word = "%s%s%s" % (word1,word2,word3)
ok_done = the_word
words.append(str(ok_done[:]))
class Second_Chars ( threading.Thread ):
def start ( self ):
global words
letters = "abcdefghijklmnopqrstuvwxyz"
numbers = "12345678910"
word1, word2, word3 = [random.choice(letters) + random.choice(numbers) for i in xrange(3)]
the_word = "%s%s%s" % (word1,word2,word3)
ok_done = the_word
words.append(str(ok_done[:]))
def Build_File():
global words
f = open("word_list.txt", "w")
for j in words:
print j
f.write("%s\n"%j)
f.close()
amount = int(raw_input("Amount of words to make: "))
for x in xrange ( amount ):
First_Chars().start()
Second_Chars().start()
Build_File()
print "Finished."