title: ANSI C: How to split a string by newline and get a random line
body: <p>I'm a new to C and got stuck with subj. I can split string with <code>strtok</code> but I don't know how to get a random token.</p>
  
  <p>Thanks.</p>