I Scala random double number can be generated in following ways.
import scala.util.Random val rnd = new Random val rndomNumber1 = rnd.nextDouble