Returns a random number greater than or equal to 0 and less than 1.
Hàm này hoạt động trong Google Sheets giống như trong Excel — cùng cú pháp và đối số.
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()Kết quả: 0.452189
Returns a random decimal between 0 and 1.
=RAND()*100Kết quả: 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.