Java用Math随机数10-20

(数据类型)(最小值+Math.random()*(最大值-最小值+1));
(int)(10+Math.random()*(20-10+1));