16,370
edits
Release 2407 and 2409
Continuous releases have started! Read more on our blog: Dolphin Progress Report: Release 2407 and 2409. |
The Dolphin Emulator Wiki needs your help! Dolphin can play thousands of games, and changes are happening all the time. Help us keep up! Join in and help us make this the best resource for Dolphin. |
(Added a simple function to return a random number. It'll be used in the new VideoGallery template...) |
(getRandomNumber: write the output directly in the page, allowing to use the value as parameter in the built in parser functions of the wiki...) |
||
Line 220: | Line 220: | ||
// Return a random number between the specified range | // Return a random number between the specified range | ||
function getRandomNumber(range) { | function getRandomNumber(range,out) { | ||
randomNumber = Math.floor((Math.random()*range)+1); | randomNumber = Math.floor((Math.random()*range)+1); | ||
document.getElementById(out).innerHTML=randomNumber; | |||
} | } | ||
$( createNavigationBarToggleButton ); | $( createNavigationBarToggleButton ); |