Edit in JSFiddle

var _int = 10;
alert(_int.toString(8));
alert(_int.toString(16));
alert(_int.toString(2));


// 랜덤(범위+) 숫자 생성하기
// Math.random() 메서드는 0 ~ 1 사이의 랜덤한 숫자를 생성하며, 구하고자 하는 범위의 가장 큰 값(256)을 random 메서드의 결과에 곱해준다.
alert(Math.floor(Math.random() * 256));

// 랜덤 범위(5 ~ 10) 숫자 생성
alert(Math.round(Math.random() * (6 - 5)) + 5);