랜덤메소드

    난수 생성 Math.random

    Math.random() 0.0 ~ 1.0 사이의 임의 double값 반환 유효범위는 0.0 ~ 0.99999... 로또 번호 생성, 음수 범위 난수 생성 public void method3() { int nNum = 0; for (int i = 1; i