Wouldn't it be better to pick a random Int instead of doing this massaging? One could just use `scala.util.Random` instead,

    scala> scala.util.Random.nextInt(100)
    res0: Int = 42

So you could do,

    start + scala.util.Random.nextInt(end - start)