Creating a Program to pick out random strings from an array : <p>So, i wanted to create a program that picks out simple strings from an array, it sounded pretty simple to me but then i ran into problems. Here's what i wrote:</p>

<pre><code>int pickjob;
string jobs[] = {Police Officer, Fireman, Vet, Doctor, Nurse, Chemist, Waiter};
job1 = jobs[rand()%7];
job2 = jobs[rand()%7];
job3 = jobs[rand()%7];
cout &lt;&lt; "Here i found some jobs for you, check them out\n1." &lt;&lt; job1 &lt;&lt; "\n2." &lt;&lt; job2 &lt;&lt; "\n3." &lt;&lt; job3 &lt;&lt; "\nGo Head and pick one out" &lt;&lt; endl;
cin &gt;&gt; pickjob;
//Rest of code is below, i'll put it in if you need it ;)
</code></pre>

<p>But my problem was that everytime i ran the program the same jobs appeared everytime (Im a amaetur at C++, so if i sound stupid forgive me), so how do i make a program where it prints out diffrent jobs every time from the array.</p>
