Returns a random number greater than or equal to 0 and less than 1.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
RAND()The RAND function generates a new random decimal number every time the worksheet is calculated. It does not require any arguments and is commonly used to simulate data or generate random values within a specific range.
=RAND()ผลลัพธ์: 0.452189
Returns a random decimal between 0 and 1.
=RAND()*100ผลลัพธ์: 72.34512
Returns a random number between 0 and 100.
RAND is a volatile function, meaning it recalculates whenever any change is made to the worksheet.