0〜9の整数を求める
var evalue1 = Math.floor(Math.random()*10);
var evalue2 = ~~(Math.random()*10);
var evalue3 = Math.random()*10 | 0;
どれでもできる。
tag: actionscript
date:2007年09月01日 17:41 | COMMENT (0) | TRACKBACK (0)
var evalue1 = Math.floor(Math.random()*10);
var evalue2 = ~~(Math.random()*10);
var evalue3 = Math.random()*10 | 0;
どれでもできる。
tag: actionscript
date:2007年09月01日 17:41 | COMMENT (0) | TRACKBACK (0)
Trackback UR: http://www.phas.jp/mt/mt-tb.cgi/15