<script>
function getRandom(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
console.log(getRandom(1, 6));
function checkin(arr) {
return arr[getRandom(0, arr.length - 1)];
}
console.log(checkin(['张三', '赵四', '王五', '麻子']));
</script>
函数互相调用