Random rd = new Random();
rd.nextInt(10);

10까지의 난수를발생시킨다.
이것 외에도

Math.random()* 10 도 방법이지만
이때의 경우 retrun이 double에 해당한다.




글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!