Generate random string via Javascript
Hello all!
I am not good with Javascript but was able to come up with random numbers using these forums and Google.
Does anyone know how to come up with a random string? IE 6 to 8 characters of numbers and letters? I have seen some Javascript that seems to work but not sure if getting it to work in Captivate is different as I have not had success.
This is what I used for number:
function getRandomInt(min, max) {
var jsRandomNumber = Math.floor(Math.random() * (max - min + 1)) + min;
alert(jsRandomNumber);
}
getRandomInt(0,1000);
Appreciate the time!
