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); } }