assigning variables in a list based on its value in relation to the other values in the list
<p>This function takes, as an argument, a positive integer n and generates 3 random numbers between 200 and 625, the smallest random number will be called minValue, the middle random number will be called myTaret, and the largest random number will be called maxValue.</p>

<pre><code>def usingFunctionsGreater(n):
#create random numbers
aList=[]
for i in range(3):
    aList.append(random.randrange(200,625,1))
    #assign minValue, myTarget, and maxValue
</code></pre>

<p>the comments should help explain the program that i want to write, but I have no clue how to assign the variables to the elements in the list that is generated.</p>

<p>How about the following:</p>

<pre><code>&gt;&gt;&gt; min, target, max = sorted([random.randrange(100, 625, 1) for i in range(3)])
&gt;&gt;&gt; min, target, max
(155, 181, 239)
&gt;&gt;&gt; 
</code></pre>

python list random variable-assignment