random

種類メソッド
書式 Math.random()
解説
乱数値を返します。
サンプルコード
n = Math.random();
alert("乱数値:"+n);
実際のスクリプトをダウンロード