codice:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
<SCRIPT LANGUAGE=JavaScript>
	var rnd=[];
	for(var i=0;i<15;i++){ 
		var tmp = Math.floor(Math.random()*90)+1;
		var nuovo = true;
		for(var j=0; j<i; j++){
			if(rnd[j]==tmp)nuovo=false;
		}
		if(nuovo){
			rnd[i]=tmp;
		}else{
			i--;
		}
}
for(var i=0;i<3;i++){
 document.getElementById("_"+(i+1)).value = rnd[i]; 
}

</SCRIPT>
</head>

<body>
<table width="500" border="0">
  <tr>
    <td><script type="text/javascript">document.write(rnd)</script></td>
  </tr>
  <tr>
    <td><form id="numeri" name="numeri" method="post" action="">
      		<input name="_1" type="text" id="_1" />
            <input name="_2" type="text" id="_2" />
            <input name="_3" type="text" id="_3" />
    </form>
    </td>
  </tr>
</table>
</body>
</html>