title: Generating millions of random integers to give as input to a Java program
body: <p>I've wrote some sorting algorithms in Java, and verified their correctness for small inputs. Now, I wanted to check how they fare against each other as the number of elements that need sorting reach up to millions.</p>
  
  <p>So I was looking for something along the steps:</p>
  
  <ol>
  <li><p>Run the sorting algorithm</p></li>
  <li><p>Ask the number of elements user wants to sort (I'd likely input > 1 million)</p></li>
  <li><p>Give the input of entered size through random integer generation.</p></li>
  </ol>
  
  <p>I was wondering how the 3rd step could be achieved, w/o having to rewrite the sorting algorithms themselves. I'm using LINUX terminal to run my code.</p>
  
  <p>Thanks!</p>