① 如何用JS隨機生成指定范圍數字
參考代碼:
java"><scriptlanguage="javascript">/***隨機數*/document.write(Math.floor(Math.random()*1000+1000));//輸出1000~2000之間的隨專機整屬數</script>