javascript Random Number
function RandomNumber() { //generates a 5 digit number (string), used for forcing browser refresh var ReturnNumber = ""; for (var i = 0; i < 5; i++) { ReturnNumber += Math.floor(Math.random() * 11).toString(); } return ReturnNumber; }
Generates a Random Number. Useful for appending to URLs to make them unique for AJAX calls.
Updated: Thursday 7th October 2010, 10:54pm
There are 0 comments
Comments are currently closed.