<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<!--点菜-->
<body>
<script type="text/javascript">
var cai = ['水煮肉片','鱼香肉丝','红烧肉','干煸豆角','可乐鸡翅','水煮鱼'];
//var 变量名 = Math.floor(Math.random()*(Y+1-x)+x) 公式
//6 = cai.length - 1 6 = cai.length-1 +1 -1 +1
var dian = Math.floor(Math.random()*(6+1-0)+0);
document.write(cai[dian]);
</script>
</body>
</html>