ExcelFlux

RAND function

a random number between 0 and 1.

Math and trigonometry

Where can you use it?

Reporting, manufacturing and engineering teams. When a total, rounding step or numerical transformation is needed, use the example to see which operation fits your inputs.

Scenario in the workbook

Random values change. Test the allowed interval rather than an exact output.

A worked example from the workbook

RowA
6Trial
71
82
93
Record 1
=AND(RAND()>=0,RAND()<1)

Expected resultTRUE

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=AND(RAND()>=0,RAND()<1)
Turkish Excel · tr-TR
=VE(S_SAYI_ÜRET()>=0;S_SAYI_ÜRET()<1)

Worked examples

Random values change. Test the allowed interval rather than an exact output.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A
6 Trial
7 1
8 2
9 3
Case Formula Expected result
Record 1 =AND(RAND()>=0,RAND()<1) TRUE
Record 2 =AND(RAND()>=0,RAND()<1) TRUE
Record 3 =AND(RAND()>=0,RAND()<1) TRUE
Microsoft Excel reference