Arrow left
Back to product guides
Google Sheets Formulas

RANDBETWEEN Function in Google Sheets: Explained

In this article, you will learn how to use the RANDBETWEEN formula in Google Sheets.

What is the RANDBETWEEN formula in Google Sheets?

The RANDBETWEEN function in Google Sheets generates a random number between two specified numbers, inclusive. Note that the RANDBETWEEN function generates a new random number every time the sheet is recalculated. To generate a new random number, you can simply recalculate the sheet by changing any cell in the sheet.

How do I use the RANDBETWEEN function in Google Sheets?

The RANDBETWEEN has the following syntax:

=RANDBETWEEN(low, high)

Where "low" is the lower bound of the range and "high" is the upper bound of the range. The function will return a random integer that is greater than or equal to the bottom value and less than or equal to the top value. Note that input values with decimal parts may be used for low and/or high. However, this will cause the least and greatest possible values to be the next integer greater than low and/or the next integer less than high, respectively. So, it is recommended that you input integers in the parameter to avoid any confusion.

For example, if you want to generate a random number between 1 and 10, you would use the following formula:

=RANDBETWEEN(1, 10)

This function is useful for generating random numbers for a variety of purposes, such as testing data sets, creating random samples, or simulating random events.

How to use the RANDBETWEEN formula in Google Sheets with examples

What are the other useful functions in Google Sheets?

If you don’t get the solution to your question in this article or you are interested in learning the other useful functions in Google Sheets, you may find the answers in the following articles.

Read the following articles to make some cases for your analysis.

How to Use CHOOSE Function in Google Sheets

How to Use SWITCH Function in Google Sheets

Move on to these articles if you are interested in them.

How to Use RANK Function in Google Sheets - Organize your dataset by ranking items

ARRAYFORMULA Function in Google Sheets: Explained - Use arrays in non-array formulas

SEQUENCE Function in Google Sheets: Explained - Create a grid of sequential numbers

VALUE Function in Google Sheets: Explained - Convert a number, date, and time string to a number

Go to the articles below to learn how to generate random numbers in Google Sheets.

RAND Function in Google Sheets: Explained

RANDARRAY Function in Google Sheets: Explained

Navigate to the following posts to learn how to make a hyperlink and import data from another Google Sheets file or a web page.

HYPERLINK Function in Google Sheets: Explained

How to Use IMPORTRANGE Function in Google Sheets

IMPORTDATA Function in Google Sheets: Explained

IMPORTHTML Function in Google Sheets: Explained

Check the articles below if you want to use translation-related functions in Google Sheets.

GOOGLETRANSLATE Function in Google Sheets: Explained - Translate one language to another.

DETECTLANGUAGE Function in Google Sheets: Explained - Identify the language used in a specified cell.

Analyze your live financial data in a snap

Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows and update numbers in real-time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

Learn how to do this step-by-step in the video below 👇

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at: founders@liveflow.io
Check Icon
Call us at +1 (415) 650-1711