Random方法

package test;


import java.math.BigDecimal;
import java.nio.channels.NonReadableChannelException;
import java.util.*;

public class Main {

	private static final String space_operator = " ";
	private static final double pi = Math.PI;
	public static void main(String[] args) throws Exception {

		Scanner scanner = new Scanner(System.in);
		
		System.out.println(Math.acos(-1.0));
		Random random = new Random();
		System.out.println(random.nextInt() % 100);
		
	}
	
}

  

posted @ 2019-11-03 20:02  WINDZLY  阅读(128)  评论(0编辑  收藏  举报