<!DOCTYPE html>
<html><head></head><body onload="gsh()"><script>
function gsh()
{
var text = "";
possible = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz", "0123456789", "!@#$%^&*()_+{}[]|;':<>?,./`~"];
var characters = parseInt(Math.random() * 248 + 8);
for(var c = 0; c < characters; ++c)
{
var poss = parseInt(Math.random() * 4);
text += possible[poss].charAt(parseInt(Math.random() * Object.keys(possible[poss]).length));
}
console.log(text);
}
</script></body></html>
click to show comments