title: how to generate random numbers with sequence in R
body: <p>I need to generate random numbers between 20 and 50 with 5 increments. For example, the numbers must be 20, 25, 30, 25, 50, 45 etc. The difference between numbers should be 5.</p>
  
  <p>I tried this:</p>
  
  <pre><code>x&lt;-floor(runif(50,20,50))
  </code></pre>
  
  <p>this gives me any number between 20 and 50. Is there an easy way to do this in R?</p>