
import random
import time

N = 100

######### timer function #################################
def print_timing(func):
	def wrapper(*arg):
		t1 = time.clock()
		res = func(*arg)
		t2 = time.clock()
		print '%s took %0.3fms' % (func.func_name, (t2-t1)*1000.0)
		return res
	return wrapper


########## your function(s) here ########################


#@print_timing
#def minmax(a,n):
#       ...blah...blah
#	#assert: (min,max) = minm and maxm values in a[0..n-1]
#	return (min,max)



############# Main ################
list = []

i = 0
while (i < N):
	list.append(random.randint(0,N-1))
	i = i+1

print list
(min,max) = minmax(list,N)
print min,max
