为什么我做出来有时候值会给两次
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var xxx=Math.random();
var ddd=xxx*10;
document.write(Math.round(ddd)+"<br>");
document.write(xxx);
</script>
</head>
<body>
</body>
</html>