title: sample function gives different result in console and in knitted document when seed is set
body: <p>I'm creating a document in a <code>Rmarkdown</code> file and knitting to HTML for file submission. Generating seeded samples using the sample function provide different results in the console and the knitted file.</p>
  
  <p>I am using R Studio version 1.0.153 and R 3.6.0</p>
  
  <p>edit: I have updated R Studio to version 1.2.1335 and am still having this issue</p>
  
  <pre class="lang-r prettyprint-override"><code>set.seed(1)
  rnorm(1)
  sample(1:10, 1)
  </code></pre>
  
  <p>in the console and knitted file, the value for <code>rnorm(1)</code> is the same, however, in the console, I see that I have sampled 6 in the console, and 7 in the knitted document</p>