【週刊ドットインストール】 Pencilのススメ、256times開講中、次の動画レッスンを準備中
return images[Math.floor(Math.random() * images.length)];
なぜMath.floorを使っているのか? なぜ[ ]で囲っているのか?
Math.floor
[ ]
よろしくお願いします。
この回答を見るにはプレミアムプランへの登録が必要です