title: picking a random line from stdout
body: <p>I have a command which spouts a number of lines to stdout:</p>
  
  <pre><code>$ listall
  foo
  bar
  baz
  </code></pre>
  
  <p>How do I extract a random entry from this, in a one-liner (preferably without awk) so I can just use it in a pipe:</p>
  
  <pre><code>$ listall | pickrandom | sed ... | curl ...
  </code></pre>
  
  <p>Thanks!</p>