範囲指定ランダム整数nMax = 15; // 最大値 nMin = 11; // 最小値 Math.floor(Math.random()*(nMax-nMin+1))+nMin; //11~15がランダムで取得 意外と簡単。 ASでも使えますね。