표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.*; public class prog { public static void main(String[] args) { System.out.println((int)(Math.random() * 100)); Random ran = new Random(); System.out.println(ran.nextInt(100)); } }