posted by 네코냥이 2013. 2. 7. 10:16


Math.random()

=> 실행 결과 0이상 1미만의 실수



var num = 101 ;

Math.floor(Math.random()*num)

=> 실행 결과 0~100 랜덤 생성