The RAND function in Google Sheets generates a random number between 0 (inclusive) and 1 (exclusive). Whether you're simulating data, conducting statistical analysis, or creating randomized scenarios, the RAND function is extremely useful. Dive into our comprehensive guide to master its application.
Parameters
This function takes no parameters.
Step-by-Step Tutorial
-
Generating a random number:
- Example:
=RAND() - Result: A random decimal number between
0(inclusive) and1(exclusive), recalculated on every sheet edit.
- Example:
-
Scaling
RANDto a custom range:- Example:
=RAND()*(100-1)+1 - Result: A random number between
1and100.
- Example:
Use Cases and Scenarios
- Data Simulation: Randomly generate sample data for testing or analysis purposes.
- Random Scenarios: Create randomized scenarios in games, raffles, or simulations.
- Statistical Analysis: Generate random values for Monte Carlo simulations or statistical modeling.
Related Functions
RANDBETWEEN: Returns a random integer between two values, inclusive.RANDARRAY: Generates an array of random numbers between 0 and 1.
Related Articles
No related articles available for the RAND function.