<script type="text/javascript">
var mynum=Math.random();
var mynub=mynum*10;
document.write(mynum+"<br>")
document.write(mynub+"<br>")
document.write(Math.round(mynub))
</script>
就是两次阿