range

22.1234 to 79.1234

and from row 1 to row 300.

how to do it........?

Do you need to insert random numbers in Microsoft Excel? There are several methods to insert random numbers in a range as follows:

**Insert random numbers by formulas **

**Insert random numbers with specified decimal places by VBA**

**Insert random integer numbers/dates/times without repeats/duplicates**

Kutools for Excel's **Insert Random Data** utility enables to insert random integers (whole numbers) between two certain numbers easily, randomly insert a series of dates (only workdays, or only weekends, or no limitation) between two dates, randomly insert a series times between two times, or generate random text strings with certain length. And the **Unique values** option will prevent from inserting duplicates. **Full Feature Free Trial 30-day!**

- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

This method will apply the RAND function and RANDBETWEEN function to insert random numbers between two numbers into a specified range in Excel. Please view below formulas:

Formula | Description (Result) |

=RAND() | A random number between 0 and 1 (varies) |

=RAND()*100 | A random number between 0 and 100 (varies) |

=RANDBETWEEN(low, high) | A random integral number between two given integer numbers, such as RANDBETWEEN(50, 100). |

See below screenshots:

Random numbers between 0 and 1=RAND() | Random numbers between 0 and 100 =RAND()*100 | Random integer numbers between 50 and 100=RANDBETWEEN(50, 100) |

Below VBA can help you insert any random integer numbers or random numbers with given decimal places into a specified range in Excel. Please do as follows:

**1**. Hold down the **ALT + F11** keys, and it opens the **Microsoft Visual Basic for Applications** window.

**2**. Click **Insert** >** Module**, and paste the following code in the **Module window.**

Public Function RandomNumbers(Num1 As Long, Num2 As Long, Optional Decimals As Integer) 'Update20131113 Application.Volatile Randomize If IsMissing(Decimals) Or Decimals = 0 Then RandomNumbers = Int((Num2 + 1 - Num1) * Rnd + Num1) Else RandomNumbers = Round((Num2 - Num1) * Rnd + Num1, Decimals) End If End Function

**3**. Save and close the code, then in a blank cell, input this formula **=RandomNumbers(X,Y,Z)**, *X* indicates the lower limit of the numbers, *Y* indicates the higher limit of the numbers, and *Z* is the specified decimal places of random numbers.

For example, I want to generate some whole numbers between 50 and 1000, I can insert this formula **=randomnumbers (50,1000,0)**; and insert random numbers between 50 and 100 with 2 decimal places with this formula =**randomnumbers (50,100,2)**. See below screenshots:

**Kutools for Excel**'s **Insert Random Data** makes it possible to insert random integral numbers between two numbers without duplicates into selected range in Excel. Please do as follows:

**Kutools for Excel **- Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required!** Free Trial Now!**

**1**. Select the range you want to insert random integer numbers, and click** Kutools** > **Insert **>** Insert Random Data**, see screenshot:

**2**. In the** Insert Random Data** dialog box, *(1) *click **Integer** tab, *(2)* In the From and To boxes type the number range you will generate random whole numbers between, *(3)* check the** Unique Values **option,* (4)* and click the** Ok** button. See screenshot:

This fantastic **Insert Random Data** feature also supports to insert random dates without repeats, random time without duplicates, random characters, and random data from certain custom list without repeats as well.

**Insert random dates (excluding weekends) without repeats by Kutools for Excel**

**Insert random time data without repeats by Kutools for Excel**

**Insert random characters with specified string length by Kutools for Excel**

**Insert random data from certain custom list without repeats by Kutools for Excel**

**Related article:**

Generate random character strings in a range

**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.

**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!

Loading comment... The comment will be refreshed after 00:00.