원하는 자릿수만큼 랜덤 숫자 생성하기 1234int r = (int)(Math.floor(Math.random() * 1000000)+100000);if(r>1000000){ r = r - 100000;}Colored by Color Scriptercs JAVA 2019. 3. 5. 15:11