codice:
$("#aggiungi").click(function(){
   var r = Math.round(Math.random()*1000);
   var nome = "input1" + r;
   $("#risultato").append("<input type='text' id='"+nome+"' value='" + nome +"'/>
");
});