alguien sabe como podria hacer?a continuación el script en cuetión:
Código:
numb = new Array(4)
var Different;
for (var i = 0; i < 4; i++) {
Different = false;
while (Different == false) {
Different = true;
numb[I] = Math.floor(Math.random() * 50) + 1;
//check it is different
for (j = 0; j < 4; j++) {
if ((numb == numb[j]) && (i != j)) {
Different = false;
}
}
}
}
document.write('<center><font color=000080 size=+3>' + numb[0] + '&nbsp;' + '<font color=993300 size=+3>' + numb[1] + '&nbsp;' + '<font color=black size=+3>' + numb[2] + '&nbsp;' + '<font color=green size=+3>' + numb[3] + '&nbsp;' + '<font color=red size=+3>' + '<//font></center>')
un hombre es tan grande como el compromiso que se le presenta
;) 
