title: How to generate random vector with whole numbers and defined length in R?
body: <p>I've heard about </p>
  
  <pre><code>    set.seed(12)
      runif(12) 
  </code></pre>
  
  <p>But I need Whole random numbers in my vector, for example, with vector length 5.</p>
  
  <p>Like:<code>x&lt;-c(rand,5)</code> (i know it's fake command, just for idea) to get <code>c = 9,0,4,3,5</code></p>
  
  <p>And also I would like to know how to get such vector only with number range between 15 and 34.</p>
  
  <p>Thanks!</p>