Consegui o código, mas como faço para o número gerado aparecer em outro canto? Eu queria colocar ele como "link"! <a href="número"> Tem como? código: <script language="JavaScript"> // Unique Random Numbers Picker // -Picks a number of unique random numbers from an array // © 2002 Premshree Pillai // http://www.qiksearch.com, http://javascript.qik.cjb.net // E-mail : qiksearch@rediffmail.com var numArr = new Array("0","1","2","3","4","5","6","7","8","9"); // Add elements here var pickArr = new Array(); // The array that will be formed var count=0; var doFlag=false; var iterations=0; function pickNums(nums) { iterations+=1; var currNum = Math.round((numArr.length-1)*Math.random()); if(count!=0) { for(var i=0; i<pickArr.length; i++) { if(numArr[currNum]==pickArr) { doFlag=true; break; } } } if(!doFlag) { pickArr[count]=numArr[currNum]; document.write('<b>' + numArr[currNum] + '</b> <font color="#808080">|</font> '); count+=1; } if(iterations<(numArr.length*3)) // Compare for max iterations you want { if((count<nums)) { pickNums(nums); } } else { location.reload(); } } pickNums(5); // Call the function, the argument is the number of elements you want to pick. // Here we pick 5 unique random numbers </script>