title: What's the best way to return a random line in a text file using C?
body: <p>What's the best way to return a random line in a text file using C? It has to use the standard I/O library (<code>&lt;stdio.h&gt;</code>) because it's for Nintendo DS homebrew.</p>
  
  <p><strong>Clarifications:</strong></p>
  
  <ul>
  <li>Using a header in the file to store the number of lines won't work for what I want to do.</li>
  <li>I want it to be as random as possible (the best being if each line has an equal probability of being chosen as every other line.)</li>
  <li>The file will never change while the program is being run. (It's the DS, so no multi-tasking.)</li>
  </ul>