产生随机数
<!Doctype html>
<html>
<head>
<meta charset = 'utf - 8'>
<title>321</title>
<script>
function show(){
var nameArr = ['1','2','3','4','5','6','7','8','9','10','11','12','13'];
var thinkArr = ['1','2','3','4'];
alert(nameArr[parseInt(Math.random()*nameArr.length)]+"-"+thinkArr[parseInt(Math.random()*thinkArr.length)]);
}
</script>
</head>
<body>
<button onClick="show()">123</button>
</body>
</html>