title: How to generate random number between 0 and 1 without 0 and 1 in R?
body: <p>I want to generate random numbers using runif(n=1,min=0,max=1) in R, but I don't want the point 0 and 1, how can I modify this to achieve my goal?</p>
  
  <p>I  think it really generates 1 some way, see my code here </p>
  
  <pre><code>randomDim = round(runif(1)*3)+1;randomDim
  
    # [1] 4
  </code></pre>