<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/javascript">
var a=[0,0,0,0,0,0]//1-6出现的次数
for(var i=0;i<=100000;i++){
var x=Math.floor(Math.random()*6)
a[x]++
}
document.write(a)
</script>
</body>
</html>