9073210c4f66001b1fe3ad9a55af56f7

来自「在eclipse下开发的求平面上两点之间的最短距离。通过随机在平面上生成无数个点」· 代码 · 共 16 行

TXT
16
字号
package distance;

import java.util.Random;

public class Test {

	public static void main(String[] args){
		int NumOfPoints = (int) Math.pow(2,3);
		//Random random1 = new Random(100);
		double num = 10*(new Random()).nextDouble();
		System.out.println("n is:" + NumOfPoints);
		//System.out.println("the num is:" + random1.nextDouble());
		System.out.println("the wanted num is:" + num);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?