How to get the max value out of a random list of numbers Python
<p>I have this code I'm trying to get to work. I can create a set of random numbers, but I need to make the max value show up. I'm trying not to use python's built in max command, BUT, I will ask for an example if I can't find a solution.</p>

<pre><code>import random
def randomNumbers(number):
    myList = []
    numbersToCreate = number
    while numbersToCreate &gt; 0:
        randomNumber = int(random.random() * 100)
        myList.append(randomNumber)
        numbersToCreate = numbersToCreate -1
    return myList
</code></pre>

<p>One piece of code I've tried to enter is this: </p>

<pre><code>theList = []
theList.sort()
biggest = theList [-1:][0]
print (theList)
</code></pre>

<p>When I try to run that with it I get an error telling me the list isn't defined. Any help would be appreciated. </p>
