<script type="text/javascript"language="javascript">
function randomChar() {
var x="0123456789qwertyuioplkjhgfdsazxcvbnm";
var tmp="";
for(var i=0;i<10;i++) {
tmp += x.charAt(Math.ceil(Math.random()*100000000)%x.length);
}
return tmp;
}
document.write(randomChar(100));
</script>
document.write(Math.floor(Math.random()*2000+1));//随机生成数字