JAVA随机数

	public static void main(String[] args) {
		Random rd = new Random();
		double f =rd.nextDouble();
		System.out.println("f="+f);
		float d = rd.nextFloat();
		System.out.println("d="+d);
		int i = rd.nextInt(100);
		if(i>=60)
			System.out.println("随机数大于等于60,等于"+i);
		else
			System.out.println("随机数小于60,等于"+i);
	}