Generate Random Numbers Between 0 and 1 in Excel – 2 Methods

Method 1 – Use the Excel RAND Function to generate Random Numbers Between 0 and 1

The RAND function returns a random number greater than or equal to 0 or less than 1, evenly distributed. The random numbers change on each recalculation.

 

Steps

  • Go to B4. (here)
  • Enter the following formula.
=RAND()

Excel RAND Function to Produce Random Numbers Between 0 and 1

  • Press Enter and drag down the Fill Handle icon.

 


Method 2 – Generate Random Numbers Using the RANDARRAY Function

The RANDARRAY function returns an array of random numbers.

Create Random Number Using the Excel RANDARRAY Function

 

Steps

  • Go to B4. (here)
  • Enter the following formula.
=RANDARRAY( , ,0, 1,FALSE) 

Create Random Number Using the Excel RANDARRAY Function

Note:

The first two arguments define the rows and columns to form an array. You can skip or specify the row and column number. The 3rd and 4th arguments indicate the minimum and maximum values of the range. Here, 0 and 1. The last argument has two options: integers and decimals. FALSE is chosen for decimal numbers ( It’s FALSE by default).

  • Press Enter and drag down the Fill Handle icon.


Create Random Integers Between Two Numbers in Excel

The ROUND function rounds a number to a specified number of digits.

Steps

  • Go to B4. (here)
  • Enter the following formula.
=ROUND(RAND()*(5-2)+2,0)

Random Number Between Two Numbers in Excel

  • Press Enter and drag down the Fill Handle icon.

 


Random Occurrence of Pre-specified Numbers Between 0 & 1

 

The CHOOSE function chooses a value or action to perform from a list of values based on an index number.

The RANDBETWEEN function returns a random number between the specified numbers.

Steps

  • Go to B4. (here)
  • Enter the following formula.
=CHOOSE(RANDBETWEEN(1,4),0.3,0.1,0.8,0.5)

Random Occurance of Pre-specified Numbers Between 0 & 1

  • Press Enter and drag down the Fill Handle icon.

Random Occurance of Pre-specified Numbers Between 0 & 1

 


Download Practice Workbook

Download the practice workbook.


<< Go Back to Random Number in Excel | Randomize in Excel Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Alok Paul
Alok Paul

Alok Paul has completed his B.Sc. in Electronics and Telecommunication Engineering from East West University. He has been working on the ExcelDemy project for more than 2 years. He has written 220+ articles and replied to numerous comments. He is experienced in Microsoft Office, especially in Excel. He also led some teams on Excel and VBA content development. He has a keen interest in Advanced Excel, Data analysis, Excel Pivot Table, Charts, and Dashboard. He loves to research... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo