title: generating a random number between 1 and 20
body: <p>The code I previously used was</p>
  
  <pre><code>Randomvariable = 1 + Int((20 - 1 + 1) * Rnd())
  </code></pre>
  
  <p>I'm a bit concerned it wasn't right because the format I'm seeing online in guides is </p>
  
  <pre><code>random_number = Int(20 * Rnd) + 1
  </code></pre>
  
  <p>Was my way equivalent to this? </p>