title: How do I assign a set of numbers to a variable but the set of numbers will be randomly generated?
body: <p>I'm trying to generate a set a random numbers, and then add these numbers after they have been generated. My code is very simple and looks like this</p>
  <pre><code>u = sample(x=1:10, size =5, replace = TRUE)
  </code></pre>
  <p>I basically want to say</p>
  <p>u=set of numbers that will be generated</p>
  <pre><code>sum(u)
  </code></pre>