title: change random seed in program c++
body: <p>In my program, I have a function <code>return_random_vector()</code> which takes a set of numbers, say <code>1,2,3,4,5</code>, and returns a random rearrangement of the numbers such as <code>2,5,1,4,3</code>.</p>
  
  <p>In order to do this, I set the seed <code>srand(time(NULL))</code>. For my program, I want to be able to call this function again with <code>1,2,3,4,5</code> and get <em>another</em> rearrangement of them, for example <code>3,1,4,5,2</code>.</p>
  
  <p>Is there a way I can set <code>srand()</code> so that the seed can be reset?</p>