参考手册
参考手册
实例 Java Math.random()
源代码
运行代码
public class Main { public static void main(String[] args) { System.out.println(Math.random()); } }
x
public
class
Main
{
public
static
void
main
(
String
[]
args
) {
System
.
out
.
println
(
Math
.
random
());
}
}
输出结果
0.1573546753722137