난수를 맞히는 게임 package com.dream.controls; import java.util.Scanner; // 난수를 맞히는 게임 public class OverLapEx08 { public static void main(String[] args) { // 1. 1부터 100까지의 난수를 발생시켜 randomNum 변수에 담는다. Scanner scan = new Scanner(System.in); int randomNum=(int)((Math.random()*100)+1), inputNum=0; //Math.random() : 0.0 ~ 0.999... //Math.random()*100 : 0.0 ~ 99.999... //(int)(Math.random()*100) : 0 ~ 99 // 2..