求大神看看哪里错了,没输出
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
function math(){
for(var i=1;i<=10;i++){
var a1=Math.round((Math.random())*i);
}
return a1;
}
document.write(a1);
</script>
</head>
<body>
</body>
</html>