How to generate random decimal/integer numbers in Excel?
To generate random numbers in Excel is usually used, maybe in some cases, you want to generate random decimal number, but in other cases, you need to generate random whole numbers. In this tutorial, I will introduce some ways of generating random decimal or random integer numbers in Excel.
Generating random decimal numbers with formula
Generating random decimal or integer numbers with Insert Random Data utility
Generating random decimal numbers
Generating random decimal numbers between 0 and 1
1. Select a blank cell, and type =RAND() into it, and then drag the fill handle to fill the range you need with the formula.
2. Then select the range you have applied the formula, and click the Increase Decimal button or Decrease Decimal button under Home tab to specify the decimal numbers.
Generating random decimal numbers between 0 and X
To randomize decimal number between 0 and X (X indicates any maximun number you need), you can use this formula =RAND()*X. For instance, I want to generate random decimal numbers between 0 and 99, now do as below:
1. Select a blank cell and type this formula =RAND()*99, and drag the fill handle to your needed range. See screenshot:
2. Then click Home tab, and go to click Increase Decimal button or Decrease Decimal button to specify the decimal numbers.
Generating random numbers between X and Y
If you want to insert random numbers between X and Y, you can use this formula, =RAND()*(Y-X)+X (X and Y indicate any number, and X<Y). For instance, I will insert random numbers between 33 and 88, now you can do as this:
1. Select a blank cell, and type this formula =RAND()*(88-33)+33, and drag the fill handle to the range you need. See screenshot:
2. Then click Home tab, and go to click Increase Decimal button or Decrease Decimal button to specify the decimal numbers.
Generating random decimal or integer numbers with Insert Random Data utility
If you need to generate random data supposing random decimal, integer numbers usually, I introduce a handy tool – Kutools for Excel’s Insert Random Data to you, which can help you quickly and easily finish below operations without formulas:
Insert random integer numbers
Insert random decimal numbers
Insert random date or time
Insert random string or custom list
Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. | ||
After free installing Kutools for Excel, please do as below:
Applying the Insert Random Data utility by clicking Kutools > Insert > Insert Random Data.
Insert random integer numbers
1. Select a range of cells that you want to insert the random integer numbers, then click Kutools > Insert > Insert Random Data.
2. Under the Integer tab of the Insert Random Data dialog, enter the scope of integer numbers you want to insert randomly, if you want the random data inserted without duplicate, check Unique values checkbox.
3. Click Ok, then the selected cells have been inserted random integer numbers.
Insert random decimal numbers
1. Select a range of cells that you want to insert the random decimal numbers, then click Kutools > Insert > Insert Random Data.
2. Under the Decimal tab of the Insert Random Data dialog, enter the scope of decimal numbers you want to insert randomly, and specify the decimal place, if you want the random data inserted without duplicate, check Unique values checkbox.
3. Click Ok, then the selected cells have been inserted random integer numbers.
Insert random date or time
Insert random string or custom list
Quickly Sort or select cells/Rows/Columns randomly from a selection in Excel |
Kutools for Excel's Sort Range Randomly can quickly sort or select data randomly by cells or columns or rows. Click for full-featured 30 days free trial! |
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. |
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
You are guest
or post as a guest, but your post won't be published automatically.
Be the first to comment.