import random
import time

def generate_random_list(n, magnitude=1024):
    '''Create a list filled with n random numbers in the range
    (-magnitude, magnitude).'''

    random.seed()
    new_list = []
    for i in range(n):
        new_list.append(random.randrange(-magnitude, magnitude))
    return new_list

###############################################################
# Generate a list of specified size filled with random numbers
myList = generate_random_list(2048)

# Take the rough start time
t1 = time.time()

# Execute a sorting function
    
# Take the rough end time
t2 = time.time()

# Provide an estimate of the execution time of the sorting function
print 'Execution time:  %0.3f ms' % ((t2-t1)*1000.0)

###############################################################
