javascript, jquery

간단 random 함수

디츠 2014. 9. 27. 15:37
function getRandom(num) {
	var my_num = Math.floor(Math.random() * num);
	return my_num;
}