by_dofamin,
вариант
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo</title>
<style type='text/css'>
#id{
font-size:20px;
color:#000;
}
</style>
<script>
window.onload=function(){
var rot = back = font = 0;
var t, arr;
var text = document.getElementById("id");
function random_all(){
arr = [];
back = random_numb(5, 0);
font = random_numb(5, 0);
rot = random_numb(10, 0);
t = "rot: "+rot+",<br> back: "+back+"<br> font: "+font;
text.innerHTML= t;
};
function random_numb(len, min){
var cur = Math.floor(Math.random() * ((len-1) - min + min)) + min;
if (arr.indexOf(cur) != -1) return random_numb(len, min)
arr.push(cur)
return cur
};
setInterval(function(){
random_all();
},1000);
}
</script>
</head>
<body>
<div id="id">Test</div>
</body>
</html>