乱数生成
任意の範囲の
整数
を
乱数
生成する
code:js
function randInt(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
randInt(0, 100);
code:py
import random
random.randint(0, 100)