Creating a list containing 30k numbers
<p>So I am trying to compare the speeds of sorting a list.  I wrote my own insertion sort function and I am comparing it with pythons built in sorting method.  I now am trying to create a list that randomly generates like 30,000 or whatever numbers.  Then I'm going to use a for loop to start with a list of like 1000 numbers and increment it by 1000 until I reach 30k.  Here is what I have so far, I am having trouble with using the for loop to create a list of 30k digits.</p>

<pre><code>    import time
    import random



def InsertionSort(A):
    for i in range(1,len(A),1):
        target = A[i]
        j = i - 1
        while j &gt;=0 and target &lt; A[j]:
            A[j+1] = A[j]
            j = j - 1
        A[j+1] = target
    return A

def TimSort(A):
    A.sort()

    return A
</code></pre>
