MediaWiki:Common.js: Difference between revisions

m initial test
No edit summary
Line 479: Line 479:
  };  
  };  


 
/*Random number generator*/
function randomNum(){
var x = document.getElementById("randNum").textContent;
var randNum = Math.floor(Math.random()*x);
}
document.getElementById("randGen").onload = randNum;
/* DO NOT ADD CODE BELOW THIS LINE */
/* DO NOT ADD CODE BELOW THIS LINE */