title: Add a random variable into Sed \a every new lines
body: <p>i want to add a random number every new lines created by sed</p>
  
  <p>For the moment my command is : </p>
  
  <pre><code>sed "a path/to/file$(($RANDOM%7))" tmp/line.txt
  </code></pre>
  
  <p>Result : </p>
  
  <pre><code>line1
  path/to/file1
  line3
  path/to/file1
  line5
  path/to/file1
  line7
  path/to/file1
  ...(22K lines)
  </code></pre>
  
  <p>Expected :</p>
  
  <pre><code>line1
  path/to/file1
  line3
  path/to/file0
  line5
  path/to/file7
  line7
  path/to/file5
  ...(22k lines)
  </code></pre>