Difference between math.random and Random.nextDouble in Scala

后端 未结 0 1756
忘掉有多难
忘掉有多难 2021-01-22 01:54

I Scala random double number can be generated in following ways.

import scala.util.Random
val rnd = new Random
val rndomNumber1 = rnd.nextDouble

相关标签:
回答
  • 消灭零回复
提交回复
热议问题