[뉴렉처] 배열에 랜덤 값 채우기 import java.util.Random; public class Star { public static void main(String[] args) { // 로또번호 랜덤하게 뽑기 // lotto 배열 생성 int[] lotto = new int[6]; // 랜덤값 생성 Random rand = new Random(); // 랜덤값 배열에 넣기 System.out.println("lotto number : "); for(int i=0; i Java 코드연습/배열 2021.10.17