#!/usr/local/bin/python
import math, random, string, time
r = random.Random()

places = ['Minnesota', 
	  'Montana', 
	  'California', 
	  'Los Angeles', 
  	  'Burma', 
	  'Budapest',
	  'India', 
	  'Cambodia', 
	  'his hometown', 
	  'San Sebastian, a Latin American country',
	  'a famine relief charity',
	  'the Amazon',
          'New Mexico']
sent = ['Lt. General Manning', 
	'his friend Charlie',
	'Chris, the senator\'s daughter',
	'the government']
mission = ['recover a cannister of poison that went down in a cargo plane', 
	   'find out why all the animals are fleeing from the area',
	   'rescue a photographer named Kate Connolly',
	   'recover the diamonds and succesfully escape with the diamonds',
	   'drill for oil',
	   'meet Nikolai Grodsky and to obtain top secret information',
	   'rescue people after an explosion in an underground lab threatens'
	   'to leak acid into a major New Mexico water supply']
turning = ['someone is shot dead', 
	   'a watch is stolen by a young Gypsy girl named Yanna',
	   'the oil catches fire set',
	   'MacGyver and Kelly are locked in a freezer',
	   'MacGyver fixes his generator broken',
	   'an explosion happens caused']
foes = ['drug dealers', 
	'big corporations', 
	'mining companies', 
	'killer ants', 
	'grave robbers', 
	'an opium dealer named Narai', 
	'Dr. Carl Steubens']
friends = ['Charlie', 
	   'Nikolai Grodsky',
	   'some kid', 
	   'a pretty woman', 
	   'an old hockey friend', 
	   'Trumbo',
	   'a random person', 
	   'Yanna',
	   'Catlin',
	   'Barbara Spencer']
tools = ['duct tape', 
	 'a chocolate bar', 
	 '"borrowing" race cars during an auto race',
	 'exploding barrels rolled at the soldiers',
	 'parachutes attached to the car',
	 'flooding the entire area',
	 'a toy plane as a distraction',
	 'dynamite',
	 'a gum wrapper',
	 'common kitchen tools']

p = r.randint(0, len(places)-1)
s = r.randint(0, len(sent)-1)
m = r.randint(0, len(mission)-1)
u = r.randint(0, len(turning)-1)
i = r.randint(0, len(foes)-1)
j = r.randint(0, len(friends)-1)
t = r.randint(0, len(tools)-1)

print "This week on MacGyyver, MacGyver is sent to", places[p], "by", 
print sent[s], "to", mission[m], 
print "before it's too late. Things look promising until", turning[u], 
print "by", foes[i], "who threaten to hurt", friends[j], ".",
print "MacGyver saves the day with", tools[t], 
print "and everyone lives happily every after."
