Sorting randomly generated numbers from lowest to highest
<p>Here's my code:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;time.h&gt;
#include &lt;cstdlib&gt;
using namespace std;

int main()
{
    srand((unsigned) time(0));
    int random_integer;
    int lowest =- 10, highest = 10;
    int range = (highest-lowest) + 1;
    for(int index = 0; index &lt; 20; index++) {
        random_integer = lowest+int(range*rand()/(RAND_MAX + 1.0));
        cout &lt;&lt; random_integer &lt;&lt; ' ';
    }

    cout &lt;&lt; "\n=============== \n";
    system("pause"); 
}
</code></pre>

<p>How do I sort the numbers that computer will generate and line them up from lowest to highest and after that print out second highest number?
Thank you. </p>
