Javascript 产生随机数函数
Javascript 产生随机数函数
<script>
function getRandom(N, M){
return Math.floor(Math.random() * (M - N + 1)) + N
}
</script>
<script>
function getRandom(N, M){
return Math.floor(Math.random() * (M - N + 1)) + N
}
</script>