title: add / subtract fixed percent to vector numbers
body: <p>I am looking to randomly add or subtract a fixed percent to each number in a vector:</p>
  
  <pre><code>nums &lt;- c(1,1,1,1,1)
  </code></pre>
  
  <p>In this case I wish to randomly adjust the 1's randomly by 0.05%. 
  It means any given 1 may randomly then be 1.05 or .95. </p>
  
  <p>I am trying to do this: </p>
  
  <pre><code>&gt; 1 + (1*0.05)
  [1] 1.05
  &gt; 1 + (1*-0.05)
  [1] 0.95
  
  # Code to sample the 0.05 or -0.05
      nums &lt;- c(1,1,1,1,1)
      perc &lt;- c(0.05,-0.05)
      new &lt;- nums + (nums*sample(perc,1))
  </code></pre>
  
  <p>The desired output should be: </p>
  
  <p><code>(1.05,1.05,.95,.95,1.05)</code> </p>
  
  <p>however im getting: </p>
  
  <pre><code>&gt; new
  [1] 0.95 0.95 0.95 0.95 0.95
  </code></pre>
  
  <p>I see the error.. its actually applying the percent change to ALL in the vector versus 1x number individually. </p>