title: Get random number between two numbers in Scala
body: <p>How do I get a random number between two numbers say 20 to 30?</p>
  
  <p>I tried:</p>
  
  <pre><code>val r = new scala.util.Random
  r.nextInt(30)
  </code></pre>
  
  <p>This allows only upper bound value, but values always starts with 0. Is there a way to set lower bound value (to 20 in the example)?</p>
  
  <p>Thanks!</p>