function selectFrom(startNumber, endNumber) { //1.從幾開始 2.到幾結束 var choice = endNumber - startNumber + 1; return Math.floor(Math.random() * choice + startNumber) }
function selectFrom(startNumber, endNumber) { //1.從幾開始 2.到幾結束 var choice = endNumber - startNumber + 1; return Math.floor(Math.random() * choice + startNumber) }