How do I get a random number between two numbers say 20 to 30?
I tried:
val r = new scala.util.Random
r.nextInt(30)
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)?
Thanks!