MediaWiki:Common.js: Difference between revisions
Preyansh98 (talk | contribs) m initial test |
Malcolmmcc (talk | contribs) 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 */ | ||