// 0~ 5 까지 렌덤번호 let randomNum = Math.random() * 6; // Int형태로 보여준다. let randomNum = Math.floor(Math.random() * 6); console.log(randomNum); int형태로 보여주기위해서 Math.floor()사용했다. Math.random() * 6 이렇게 하게되면 0~ 5까지 숫자를 반복해준다. 그래서 + 1을하면 1~6까지의 숫자가 반복된다. 1~45까지의 숫자중에서 6자리를 램덤으로 출력해보자. lotto number Random Number let button = document.getElementById("button"); let label1 = document.getElementById("label1"); ..