• 코드:
​x
 
1
import java.util.*;
2
​
3
public class prog {
4
    public static void main(String[] args) {
5
        System.out.println((int)(Math.random() * 100));
6
        
7
        Random ran = new Random();
8
        System.out.println(ran.nextInt(100));
9
    }
10
}
표준입력 & 실행옵션