function randomChar() {
var originalString="0123456789qwertyuioplkjhgfdsazxcvbnm";
var stringLength = Math.random()*originalString.length;
var tmp="";
for(var i=0;i<stringLength;i++)
{
tmp += x.charAt(Math.ceil(Math.random()*100000000)%originalString.length);
}
return tmp;
}
document.write(randomChar());