用这个:
min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1) + min);
用parseInt(Math.random() * (max - min + 1) + min)不太行