We are in the process of updating the site, so some pages still have the older design.
How to generate random whole numbers (integers) that are between two numbers. This allows you to set a minimum and maximum possible value and then generate random numbers within that range.
Make sure to download the accompanying workbook to follow along.
Steps to Generate Random Numbers within a Range in Excel
Quickly Make a List of Random Numbers
How to Freeze the Random Numbers Generated in Excel
To achieve the desired result, we will use the RANDBETWEEN function.




Note that every time the worksheet updates, which is when any cell is changed or when you press the F9 key, this number will change.
Follow the instructions above to create a random number using the RANDBETWEEN function and then click the cell that contains this function and use the quick-fill handle in the bottom right corner of the cell to copy the formula down and across as far as you want.


Copy it to the right in the same manner:


When you use the RANDBETWEEN function, every time the worksheet is changed or updated, the numbers will change. However, once the numbers have been generated, you can keep them the same by copy-pasting special.



All of these numbers are now actual numbers instead of being an Excel function. This means that they will not change when you update the spreadsheet and you can work on them as you like.
This is a simple but helpful tip for creating random numbers that are within a specific range. In fact, this is what I use to create sample worksheets quickly.
Remember that the random numbers will change each time the spreadsheet is updated unless you follow the steps above to change them into regular numbers.
Download the accompanying worksheet to see this function in action.
Follow along with the tutorial by downloading the files used in it. (Completely Free)
Phone number is optional - we use it to send course discounts and weekly updates via SMS.