AS3产生随机数

产生一个 a 到 b 之间的随机数(包括 a 不包括 b):
ranNum =  a + (b - a) * Math.random();

原文地址:https://www.cnblogs.com/wqing/p/3050146.html