function selectFrom(startNumber, endNumber) { //1.从几开始 2.到几结束 var choice = endNumber - startNumber + 1; return Math.floor(Math.random() * choice + startNumber) }