Maison > Questions et réponses > le corps du texte
function doubleChromosphere() {
var bools = [],
i,
ranNumber;
for(i = 0; i < 5;) {
ranNumber = parseInt(Math.random() * 33 + 1);
if(bools.indexOf(ranNumber) == -1) {
bools.push(ranNumber);
i++;
}
}
var str = "";
for(var j = 0; j < bools.length; j++){
str += bools[j] + " ";
}
red.innerHTML = str.toString();
blue.innerHTML = (parseInt(Math.random() * 16 + 1)).toString();
}