Math.random()*(最大値-最小値)+最小値
でいけました!
hoge
// 15〜25までの乱数を吐き出す
var randNum = Math.floor(Math.random()*(25-15)+15);
Go to list of users who liked
More than 5 years have passed since last update.
Math.random()*(最大値-最小値)+最小値
でいけました!
// 15〜25までの乱数を吐き出す
var randNum = Math.floor(Math.random()*(25-15)+15);
Register as a new user and use Qiita more conveniently
Go to list of users who liked