返回 m 到 n 的隨機整數javascript
<script type="text/javascript"> function randomNumber(m,n){ return Math.round(Math.random()*(n-m)+m); } </script>