returns a random number between two digits passed in as arguments.
function randomInteger(low, high)
{
return low + Math.floor(Math.random() * (high - low));
}
returns a random number between two digits passed in as arguments.
function randomInteger(low, high)
{
return low + Math.floor(Math.random() * (high - low));
}
This entry was posted on September 5, 2009, 5:31 pm and is filed under JavaScript. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Activity
Geir Freysson
Andrew DiFiore
zeming
Arun, Neil, shashwat
Eric, Fernando Zanatta, Jörn Zaefferer