ある最小値とある最大値の間の乱数を求める
//ある最小値とある最大値の間の乱数を求める
var min=1;
var max=12;
//最小値+Math.floor(Math.random()*(最大値-最小値+1));
var num=min+Math.floor(Math.random()*(max-min+1));
trace(num);
tag: actionscript
date:2007年09月04日 09:06 | COMMENT (0) | TRACKBACK (0)
