指定範囲の乱数

乱数 : R
最小値 : MIN
最大値 : MAX

R = Math.floor(Math.ramdom() * (MAX - MIN + 1)) + MIN

カテゴリ:Math

タグ:

Post at 2008年06月30日 18:35





Feed


Powered by Movable Type 4.27-ja

Hosted by heteml