Open links in new tab
    1. Select the cell where you want the random number to appear.

    2. To generate a random decimal number between 0 and 1, type =RAND() and press Enter.

    3. To generate a random whole number within a specific range, type =RANDBETWEEN(bottom, top) (replace bottom and top with your desired range) and press Enter.

    4. To generate multiple random numbers, drag the fill handle (small square at the bottom-right corner of the cell) across or down to fill other cells.

    5. To prevent the random numbers from changing, copy the cells and use Paste Special > Values to paste them as static numbers.

  1. 5 Ways to Generate Random Numbers in Excel

    Learn how to use the RAND, RANDBETWEEN, RANDARRAY and other functions to create random values in Excel. See examples, syntax and tips for different scenarios a…
    Generate Random Numbers with The Rand Function

    The first way I will show you is the easiest way to generate random values in Excel. There is a very simple RANDfunction that requires no parameters and will generate a random number between 0 and 1.

    Generate Random Numbers Using The Randbetween Function

    Excel has a useful function for generating random numbers within a range of an upper and lower number. This is easier to use than using the RAND function as it includes extra operators to arrive at your specific range.

  2. Random Number Generator Within Range in Excel (8 Examples)

      1. Use Excel RAND Function to Generate Number between a Range. You can use the …
      2. Apply RANDBETWEEN Function as Random Number Generator in a Range. Let’s use …
      3. Use RANK.EQ and RAND Functions as Unique Number Generator between a Range. …
      4. Insert RANDARRAY Function as Random Number Generator in Excel. In Excel 365, …
      5. Excel ROUND and RAND Functions Combination as Random Number Generator in a …
  3. RAND function - Microsoft Support

    If you want to use RAND to generate a random number but don't want the numbers to change every time the cell is calculated, you can enter =RAND () in the formula bar, and then press F9 to change the …