游戏中达到某种概率事件算法 //获取范围内的随机数 GetRandom(min,max){ if(min == max) return min; let _num: any = Math.random() * (max