System.out.println (r.nextint (18)+1);
스스로 API nextInt( 18) 를 찾아본다. 0 에서 18 사이의 난수 = = "Nextint (18)+ 1 은 1 과/kk 사이입니다