Faster javascript processing
问题 Just asked my first question and got a great response. So helpful. Helped me create this bit of javascript to create two random numbers on the same page. <script> window.onload = function(){ generateRandomNumber1(); generateRandomNumber2(); }</script> <script> function generateRandomNumber1(){ var n = 30; var number = Math.floor(Math.random()*n)+1; document.getElementById("random1").innerHTML = number; } function generateRandomNumber2(){ var n = 15; var number = Math.floor(Math.random()*n)+1;