copy and paste the orange text. only tested for Python 2.6.3
import random
first_event = random.randint (1, 5)
described_thing = random. randint (1, 10)
thing_you_encouter = random.randint (1, 10)
where = random.randint (1, 5)
time = random.randint (1, 5)
result = random.randint (1, 8)
fir = ""
det = ""
tye = ""
whe = ""
tim = ""
res = ""
start = 1
while start == 1:
import random
first_event = random.randint (1, 5)
described_thing = random. randint (1, 10)
thing_you_encouter = random.randint (1, 10)
where = random.randint (1, 5)
time = random.randint (1, 5)
result = random.randint (1, 8)
if first_event == 1:
fir = "bump into"
if first_event == 2:
fir = "fall over"
if first_event == 3:
fir = "encouter"
if first_event == 4:
fir = "see"
if first_event == 5:
fir = "talk to"
if described_thing == 1:
det = "european"
if described_thing == 2:
det = "boring"
if described_thing == 3:
det = "sarcastic"
if described_thing == 4:
det = "lonely"
if described_thing == 5:
det = "small"
if described_thing == 6:
det = "wise"
if described_thing == 7:
det = "rich"
if described_thing == 8:
det = "nasty"
if described_thing == 9:
det = "deadly"
if described_thing == 10:
det = "racist"
if thing_you_encouter == 1:
tye = "cabbage"
if thing_you_encouter == 2:
tye = "tourist"
if thing_you_encouter == 3:
tye = "signpost"
if thing_you_encouter == 4:
tye = "part of the road"
if thing_you_encouter == 5:
tye = "taxi driver"
if thing_you_encouter == 6:
tye = "gorrila"
if thing_you_encouter == 7:
tye = "apple pie"
if thing_you_encouter == 8:
tye = "vegetable trio"
if thing_you_encouter == 9:
tye = "gang"
if thing_you_encouter == 10:
tye = "envelope"
if where == 1:
whe = "in yorkshire"
if where == 2:
whe = "on mars"
if where == 3:
whe = "in the city"
if where == 4:
whe = "in a movie"
if where == 5:
whe = "by the seas"
if time == 1:
tim = "at midnight"
if time == 2:
tim = "in the morning"
if time == 3:
tim = "just before the world ends"
if time == 4:
tim = "in the evening"
if time == 5:
tim = "at midday"
if result == 1:
res = "resulting in instant death."
if result == 2:
res = "resulting in a bad party."
if result == 3:
res = "resulting in 5 years of bad luck."
if result == 4:
res = "resulting in no emails."
if result == 5:
res = "resulting in an accident."
if result == 6:
res = "resulting in a fight."
if result == 7:
res = "resulting in free fast food."
if result == 8:
res = "resulting in luxurious sofas falling from the sky."
fortune = 1
while fortune == 1:
import random
first_event = random.randint (1, 5)
described_thing = random. randint (1, 10)
thing_you_encouter = random.randint (1, 10)
where = random.randint (1, 5)
time = random.randint (1, 5)
result = random.randint (1, 8)
print "I see you are here for a fortune!"
ask = input ("type yes in quotes for a fortune. ")
if ask == "yes":
print "you may " + fir + " a " + det + " " + tye + " " + whe + " " + res
print ""
start = 1
fortune = 0
# made by the vitamin c guy