<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var rannum = Math.random();
document.write("获取到的随机数为:"+rannum);
document.write("四舍五入后的数字为:"+Math.round((rannum)*10))
</script>
</head>
<body>
</body>
</html>
qq_穆_2