(M+(N-M)*Math.random())若需整型,则(int)(M+(N-M)*Math.random()) (最大值-最小值)*Math.random() + 最小值如果要包含最大值,则最大值加1