웹언어/JavaScript

랜덤 함수

건깡 2012. 4. 27. 10:52

a = Math.ceil(5*Math.random());


alert(a);


1~5 사이의 랜덤 값 호출