close
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
function add() {
var n=0;
var maxNum = 10;
var minNum = 0;
for(var i=1;i<=3;i++){
n = Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;
document.write(n + "<br />");
}
}
</script>
</head>
<body>
<input type="button" value="submit" onclick="add()"/>
<div id="piechart" style="width: 900px; height: 500px;"></div>
</body>
</html>
全站熱搜