您的位置首页百科知识

math.random()

math.random()

的有关信息介绍如下:

math.random()

Math.random()是令系统随机选取大于等于 0.0 且小于 1.0 的伪随机 double 值,是Java语言常用代码。例如:double a=Math.random()*(3-1)+1,设置一个随机1到3的变量。

想要了解更多“math.random()”的信息,请点击:math.random()百科